/* =====================================================================
   ETV REQUEST FORM (views/site/_request_form.php)

   The live site's draft form (http://etv.itdi.com.ph/, Apply Now), ported
   with its look. Its page-wide body / h2 / label / input / button rules
   are scoped to .etv-request here, so the rest of the site is unchanged.
   The Bootstrap grid and modals it leaned on are CSS grid and <dialog>.
   ===================================================================== */

.etv-request {
    --er-blue: #0B5ED7;
    --er-navy: #0A2A5E;
    --er-label: #5b7aa8;
    --er-line: #C9D6E8;
    --er-line-hover: #a9c2e0;
    --er-panel: #F5F8FC;
    --er-border: #dfe6ef;
    --er-error: #e53935;
    --er-pill-navy: #16205C;
    --er-pill-red: #e5384d;
    --er-ok: #2ec4b6;
    --er-text: #3c4568;
    --er-muted: #8892ab;

    margin-top: 28px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.etv-request *,
.etv-request *::before,
.etv-request *::after {
    box-sizing: border-box;
}

/* ── Card + heading bar ─────────────────────────────────────────────── */

.etv-request .er-card {
    width: 900px;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 0 25px 28px;
    border-radius: 14px;
    box-shadow: 0 12px 30px -10px rgba(10, 42, 94, .22);
    overflow: hidden;
}

.etv-request .er-title {
    margin: 0 -25px 24px;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--er-blue), var(--er-navy));
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

/* ── Layout ─────────────────────────────────────────────────────────── */

.etv-request .er-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
}

.etv-request .er-section {
    margin-top: 8px;
}

.etv-request .er-address-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 20px;
}

.etv-request .payment-section {
    margin-bottom: 20px;
}

.etv-request .payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.etv-request .section-label {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e3e8f4;
    color: #16205C;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* ── Fields ─────────────────────────────────────────────────────────── */

.etv-request .form-group {
    display: flex;
    flex-direction: column;
    margin: 0 0 16px;
    padding: 0 6px;
}

.etv-request .control-label {
    display: block;
    margin-bottom: 6px;
    color: var(--er-label);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.etv-request .required > .control-label::after {
    content: ' *';
    color: var(--er-error);
    font-weight: bold;
}

.etv-request .form-control {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 8px 2px;
    border: none;
    border-bottom: 2px solid var(--er-line);
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    transition: border-color .2s ease;
}

.etv-request .form-control:hover {
    border-bottom-color: var(--er-line-hover);
}

.etv-request .form-control:focus {
    border-bottom-color: var(--er-blue);
    outline: none;
}

.etv-request .form-control::placeholder {
    color: #9aa8bd;
}

.etv-request select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 26px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='14' height='8' viewBox='0 0 14 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235b7aa8' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    cursor: pointer;
}

.etv-request select.form-control:disabled {
    color: #9aa8bd;
    cursor: not-allowed;
    border-bottom-style: dashed;
}

.etv-request input[readonly].form-control {
    color: #495057;
    border-bottom-color: #d5dbe3;
}

/* Field icons, keyed off the id suffix as on the live form. */
.etv-request input.form-control {
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 16px 16px;
}

.etv-request input.form-control[id$='-company_name'] {
    padding-right: 28px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b7aa8' stroke-width='2'%3E%3Crect x='4' y='3' width='11' height='18'/%3E%3Cpath d='M8 8h3M8 12h3M8 16h3'/%3E%3Cpath d='M15 21v-6h5v6'/%3E%3C/svg%3E");
}


.etv-request input.form-control[id$='-technology_name'] {
    padding-right: 28px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b7aa8' stroke-width='2'%3E%3Crect x='7' y='7' width='10' height='10' rx='1'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.5 4.5l2 2M17.5 17.5l2 2M4.5 19.5l2-2M17.5 6.5l2-2'/%3E%3C/svg%3E");
}

.etv-request input.form-control[id$='-contact_no'] {
    padding-right: 28px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b7aa8' stroke-width='2'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.3 1.8.6 2.7a2 2 0 0 1-.4 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.5 2.7.6a2 2 0 0 1 1.9 2.2Z'/%3E%3C/svg%3E");
}


.etv-request input.form-control[id$='-email'] {
    padding-right: 28px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b7aa8' stroke-width='2'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m2 6 10 7L22 6'/%3E%3C/svg%3E");
}

.etv-request input.form-control[id$='-address'] {
    padding-right: 28px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b7aa8' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
}

.etv-request input.form-control[id$='-price'] {
    padding-right: 28px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b7aa8' stroke-width='2'%3E%3Cpath d='M7 4v16M7 4h7a4 4 0 0 1 0 8H7M4 9h10M4 13h9'/%3E%3C/svg%3E");
}

/* ── Validation ─────────────────────────────────────────────────────── */

.etv-request .help-block {
    margin-top: 5px;
    color: var(--er-error);
    font-size: 13px;
    font-weight: normal;
}

.etv-request .help-block:empty {
    display: none;
}

.etv-request .has-error .form-control {
    border-bottom-color: var(--er-error);
}

.etv-request .upload-card.has-error,
.etv-request .captcha-box.has-error {
    border-color: var(--er-error);
}

.etv-request .er-alert {
    margin: 0 0 18px;
    padding: 10px 14px;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    background: #fdecee;
    color: #9b1c2c;
    font-size: 13px;
}

/* ── Upload card ────────────────────────────────────────────────────── */

.etv-request .upload-box {
    margin-bottom: 4px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--er-border);
    border-radius: 14px;
    box-shadow: 0 8px 24px -10px rgba(10, 42, 94, .15);
}

.etv-request .upload-card {
    width: 100%;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e3e8f4;
    border-radius: 16px;
    box-shadow: 0 10px 30px -12px rgba(19, 36, 110, .18);
}

.etv-request .card-head {
    margin-bottom: 14px;
}

.etv-request .card-head h3 {
    margin: 0;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--er-blue), var(--er-navy));
    color: #f8f9fa;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.etv-request .dropzone {
    padding: 22px 14px;
    border: 1.5px dashed #c7d1ec;
    border-radius: 12px;
    background: #f4f7fd;
    text-align: center;
    cursor: pointer;
    transition: .2s;
}

.etv-request .dropzone.drag,
.etv-request .dropzone:hover,
.etv-request .dropzone:focus-visible {
    border-color: #2f6fed;
    background: #eef3ff;
    outline: none;
}

.etv-request .cloud {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: auto;
    border-radius: 50%;
    background: linear-gradient(180deg, #2f6fed, #13246e);
}

.etv-request .dropzone p {
    margin: 8px 0 3px;
    color: var(--er-text);
    font-size: 12.5px;
}

.etv-request .hint {
    color: var(--er-muted);
    font-size: 11px;
}

.etv-request .er-file-input {
    display: none;
}

.etv-request .toolbar {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.etv-request .btn-pill {
    flex: 1;
    padding: 9px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, transform .1s ease;
}

.etv-request .btn-pill-navy {
    background: var(--er-pill-navy);
    box-shadow: 0 4px 12px -4px rgba(22, 32, 92, .5);
}

.etv-request .btn-pill-navy:hover {
    background: #10184a;
}

.etv-request .btn-pill-red {
    background: var(--er-pill-red);
    box-shadow: 0 4px 12px -4px rgba(229, 56, 77, .5);
}

.etv-request .btn-pill-red:hover {
    background: #cc2c40;
}

.etv-request .btn-pill:disabled {
    opacity: .5;
    cursor: default;
}

.etv-request .file-list {
    margin-top: 15px;
}

.etv-request .file-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.etv-request .file-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(46, 196, 182, .15);
    color: var(--er-ok);
    font-size: 12px;
    flex-shrink: 0;
}

.etv-request .file-info {
    flex: 1;
    min-width: 0;
}

.etv-request .file-name-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--er-text);
    font-size: 11.5px;
}

.etv-request .file-name-row .name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.etv-request .file-name-row .size {
    color: var(--er-muted);
    flex-shrink: 0;
}

.etv-request .file-remove {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--er-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.etv-request .file-remove:hover {
    background: #fdecee;
    color: var(--er-pill-red);
}

.etv-request .progress-track {
    height: 5px;
    margin-top: 5px;
    border-radius: 5px;
    background: #eef1fa;
}

.etv-request .progress-fill {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background: var(--er-ok);
}

/* ── reCAPTCHA box ──────────────────────────────────────────────────── */

.etv-request .captcha-box {
    margin: 4px 0 20px;
    padding: 16px 18px;
    background: var(--er-panel);
    border: 1px solid var(--er-border);
    border-radius: 12px;
}

.etv-request .captcha-box .control-label {
    margin-bottom: 10px;
}

.etv-request .er-note {
    margin: 0;
    color: var(--er-muted);
    font-size: 13px;
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.etv-request .er-actions {
    text-align: center;
}

.etv-request .submit-btn {
    display: inline-block;
    padding: 10px 34px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--er-blue), var(--er-navy));
    box-shadow: 0 6px 16px -6px rgba(10, 42, 94, .55);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.etv-request .submit-btn:hover {
    background: linear-gradient(135deg, #0a53c2, #08214a);
    box-shadow: 0 10px 20px -8px rgba(10, 42, 94, .6);
    transform: translateY(-1px);
}

.etv-request .submit-btn:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

.etv-request .er-btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.etv-request .er-btn-light {
    border: 1.5px solid var(--er-blue);
    background: #fff;
    color: var(--er-blue);
}

.etv-request .er-btn-light:hover {
    background: #eef3ff;
}

/* ── Dialogs (review, receipt) ──────────────────────────────────────── */

.etv-request .er-dialog {
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    /* A modal <dialog> is centred by margin:auto; layout.css's
       "* { margin: 0 }" reset would pin it to the top-left corner. */
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 14px;
    box-shadow: 0 24px 60px -18px rgba(10, 42, 94, .45);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.etv-request .er-dialog::backdrop {
    background: rgba(10, 20, 45, .55);
}

.etv-request .er-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eef1f7;
}

.etv-request .er-dialog-head h3 {
    margin: 0;
    color: #1a2540;
    font-size: 18px;
    font-weight: 700;
}

.etv-request .er-dialog-close {
    border: none;
    background: none;
    color: #8892ab;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.etv-request .er-dialog-body {
    padding: 14px 20px 20px;
}

.etv-request .review-list {
    margin-bottom: 4px;
}

.etv-request .review-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #eef1f7;
    font-size: 13px;
}

.etv-request .review-row:last-child {
    border-bottom: none;
}

.etv-request .review-label {
    flex-shrink: 0;
    color: #2f6fed;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.etv-request .review-value {
    color: #1a2540;
    text-align: right;
    word-break: break-word;
    white-space: pre-line;
}

.etv-request .review-value:empty::before {
    content: '-';
    color: #9aa8bd;
}

.etv-request .review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.etv-request .er-receipt-body {
    text-align: center;
}

.etv-request .er-receipt-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 6px auto 10px;
    border-radius: 50%;
    background: rgba(25, 135, 84, .12);
    color: #198754;
    font-size: 28px;
    font-weight: 700;
}

.etv-request .er-receipt-lead {
    margin: 0 0 12px;
    color: #198754;
    font-weight: 600;
}

.etv-request .er-receipt-rrn {
    color: #0A2A5E;
    font-family: 'Bebas Neue', 'Segoe UI', Arial, sans-serif;
    font-size: 30px;
    letter-spacing: 1px;
}

.etv-request .er-receipt-caption {
    margin: 0 0 12px;
    color: var(--er-muted);
    font-size: 12px;
}

.etv-request .er-receipt-message {
    margin: 0;
    color: var(--er-text);
    font-size: 13px;
}

.etv-request .er-receipt-actions {
    justify-content: center;
}

/* ── Narrow screens ─────────────────────────────────────────────────── */

@media (max-width: 760px) {
    .etv-request .er-card {
        padding: 0 16px 22px;
    }

    .etv-request .er-title {
        margin: 0 -16px 20px;
    }

    .etv-request .er-columns,
    .etv-request .er-address-grid,
    .etv-request .payment-grid {
        grid-template-columns: 1fr;
    }

    .etv-request .upload-box,
    .etv-request .upload-card {
        padding: 14px;
    }
}
