/* =========================================================
   TAX INVOICE
========================================================= */

.tax-invoice-page {
    padding: 45px 0 80px;
    background: #f6f7f9;
}

.tax-invoice-container {
    width: calc(100% - 80px);
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.tax-invoice-header {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.tax-invoice-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;
    padding: 4px 14px;
    margin-bottom: 14px;

    border-radius: 99px;

    background: #eef1ff;
    color: #0c186a;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
}

.tax-invoice-header h1 {
    margin: 0;

    font-size: 38px;
    line-height: 1.35;
    font-weight: 600;

    color: #09134F;
}

.tax-invoice-header p {
    margin: 12px 0 0;

    font-size: 16px;
    line-height: 1.7;

    color: #6b7280;
}


/* =========================================================
   ALERT
========================================================= */

.tax-alert {
    max-width: 1000px;

    margin: 0 auto 20px;
    padding: 14px 18px;

    border-radius: 8px;

    font-size: 15px;
}

.tax-alert-error {
    border: 1px solid #fecaca;

    background: #fef2f2;
    color: #b91c1c;
}


/* =========================================================
   FORM
========================================================= */

.tax-invoice-form {
    max-width: 1000px;
    margin: 0 auto;
}

.tax-form-section {
    margin-bottom: 24px;
    padding: 32px;

    border: 1px solid #e6e8ec;
    border-radius: 12px;

    background: #fff;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.tax-section-title {
    display: flex;
    align-items: flex-start;

    gap: 16px;

    margin-bottom: 28px;
}

.tax-section-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    border-radius: 8px;

    background: #0c186a;
    color: #fff;

    font-size: 14px;
    font-weight: 600;
}

.tax-section-title h2 {
    margin: 0;

    font-size: 21px;
    font-weight: 600;

    color: #111827;
}

.tax-section-title p {
    margin: 4px 0 0;

    font-size: 14px;
    line-height: 1.6;

    color: #6b7280;
}


/* =========================================================
   GRID
========================================================= */

.tax-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px;
}

.tax-field {
    min-width: 0;
}

.tax-field-full {
    grid-column: 1 / -1;
}

.tax-field label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 500;

    color: #374151;
}

.tax-field label>span {
    color: #F63D37;
}

.tax-field input,
.tax-field textarea {
    width: 100%;

    border: 1px solid #d9dde5;
    border-radius: 8px;

    outline: none;

    background: #fff;
    color: #111827;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.tax-field input {
    height: 48px;
    padding: 0 14px;
}

.tax-field textarea {
    min-height: 120px;
    padding: 13px 14px;

    line-height: 1.7;
    resize: vertical;
}

.tax-field input:focus,
.tax-field textarea:focus {
    border-color: #0c186a;

    box-shadow:
        0 0 0 3px rgba(12, 24, 106, .08);
}

.tax-field input::placeholder,
.tax-field textarea::placeholder {
    color: #9ca3af;
}


/* =========================================================
   CUSTOMER TYPE
========================================================= */

.tax-radio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.tax-radio-card {
    position: relative;

    display: block;

    cursor: pointer;
}

.tax-radio-card>input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.tax-radio-content {
    display: flex;
    flex-direction: column;

    min-height: 90px;

    padding: 19px 20px;

    border: 1px solid #dfe2e8;
    border-radius: 10px;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.tax-radio-content strong {
    color: #111827;

    font-size: 16px;
    font-weight: 600;
}

.tax-radio-content small {
    margin-top: 5px;

    color: #6b7280;

    font-size: 13px;
    line-height: 1.5;
}

.tax-radio-card>input:checked+.tax-radio-content {
    border-color: #0c186a;

    background: #f6f7ff;

    box-shadow:
        0 0 0 1px #0c186a;
}


/* =========================================================
   BRANCH
========================================================= */

.tax-branch-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    min-height: 48px;

    gap: 20px;
}

.tax-branch-options label {
    display: flex;
    align-items: center;

    gap: 8px;

    margin: 0;

    cursor: pointer;

    font-weight: 400;
}

.tax-branch-options input {
    width: 17px;
    height: 17px;
}

#branch-number-field {
    display: none;
}

#branch-number-field.is-visible {
    display: block;
}


/* =========================================================
   UPLOAD
========================================================= */

.tax-upload-box {
    position: relative;
}

.tax-upload-box>input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.tax-upload-label {
    display: flex;
    align-items: center;

    gap: 16px;

    padding: 18px 20px;

    border: 1px dashed #cbd0da;
    border-radius: 10px;

    background: #fafbfc;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease;
}

.tax-upload-label:hover {
    border-color: #0c186a;
    background: #f7f8ff;
}

.tax-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    flex: 0 0 54px;

    border-radius: 8px;

    background: #F63D37;
    color: #fff;

    font-size: 13px;
    font-weight: 600;
}

.tax-upload-label strong {
    display: block;

    margin-bottom: 4px;

    color: #111827;

    font-size: 15px;
}

.tax-upload-label span {
    display: block;

    max-width: 600px;

    overflow: hidden;

    color: #6b7280;

    font-size: 13px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.tax-upload-note {
    margin-top: 9px;

    color: #6b7280;

    font-size: 12px;
}

.tax-note-field {
    margin-top: 24px;
}


/* =========================================================
   SUBMIT
========================================================= */

.tax-submit-area {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 24px 28px;

    border: 1px solid #e6e8ec;
    border-radius: 12px;

    background: #fff;
}

.tax-submit-area p {
    margin: 0;

    color: #6b7280;

    font-size: 14px;
}

.tax-submit-btn {
    min-height: 50px;

    padding: 0 28px;

    border: 0;
    border-radius: 8px;

    background: #F63D37;
    color: #fff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease;
}

.tax-submit-btn:hover {
    background: #e52f2a;

    transform: translateY(-1px);
}


/* =========================================================
   SUCCESS
========================================================= */

.tax-success-page {
    min-height: 600px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 20px;

    background: #f6f7f9;
}

.tax-success-card {
    width: 100%;
    max-width: 650px;

    padding: 55px 45px;

    border-radius: 14px;

    background: #fff;

    text-align: center;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, .05);
}

.tax-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    margin: 0 auto 22px;

    border-radius: 50%;

    background: #ecfdf3;
    color: #16a34a;

    font-size: 34px;
    font-weight: 600;
}

.tax-success-card h1 {
    margin: 0;

    color: #09134F;

    font-size: 30px;
    font-weight: 600;
}

.tax-success-description {
    margin: 12px 0 28px;

    color: #6b7280;

    font-size: 16px;
}

.tax-request-number {
    padding: 18px 20px;

    border-radius: 10px;

    background: #f7f8fa;
}

.tax-request-number span {
    display: block;

    margin-bottom: 5px;

    color: #6b7280;

    font-size: 13px;
}

.tax-request-number strong {
    display: block;

    color: #0c186a;

    font-size: 21px;
    font-weight: 600;
}

.tax-success-note {
    margin: 25px 0 0;

    color: #6b7280;

    font-size: 14px;
    line-height: 1.7;
}

.tax-success-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}

.tax-home-btn,
.tax-new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 22px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;
}

.tax-home-btn {
    background: #0c186a;
    color: #fff;
}

.tax-new-btn {
    border: 1px solid #d9dde5;

    background: #fff;
    color: #111827;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .tax-invoice-page {
        padding: 30px 0 55px;
    }

    .tax-invoice-container {
        width: calc(100% - 30px);
    }

    .tax-invoice-header {
        margin-bottom: 28px;
    }

    .tax-invoice-header h1 {
        font-size: 29px;
    }

    .tax-form-section {
        padding: 24px 20px;
    }

    .tax-section-title {
        gap: 12px;
    }

    .tax-form-grid,
    .tax-radio-grid {
        grid-template-columns: 1fr;
    }

    .tax-submit-area {
        flex-direction: column;
        align-items: stretch;

        padding: 22px 20px;
    }

    .tax-submit-btn {
        width: 100%;
    }

    .tax-success-card {
        padding: 40px 25px;
    }

    .tax-success-card h1 {
        font-size: 25px;
    }

}