/**
 * ABSIH LOMS — Page 4 Styles (Payment + Nominee + Signature)
 */

@charset "UTF-8";

.absih-page[data-page="4"] .absih-form-container {
    padding: 0;
}

/* ============ Header ============ */
.absih-p4-header {
    background: #0a1e5e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 0;
}

.absih-p4-header-logo-wrap {
    flex: 0 0 70px;
}

.absih-p4-logo {
    display: block;
    height: 55px;
    width: auto;
}

.absih-p4-header-text {
    flex: 1;
    text-align: right;
}

.absih-p4-header-line1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
}

.absih-p4-header-line2 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #ffffff;
    line-height: 1.2;
    margin: 3px 0 0;
}

/* ============ Body ============ */
.absih-p4-body {
    background: #d5e8f0;
    padding: 15px 18px 18px;
    position: relative;
}

/* ============ Payment Rows ============ */
.absih-p4-pay-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #0a1e5e;
}

.absih-p4-pay-label {
    font-size: 12px;
    font-weight: 600;
    color: #0a1e5e;
    white-space: nowrap;
}

.absih-p4-pay-label-bold {
    font-size: 12px;
    font-weight: 700;
    color: #0a1e5e;
    white-space: nowrap;
}

.absih-p4-sep {
    font-size: 12px;
    font-weight: 700;
    color: #0a1e5e;
}

.absih-p4-pay-label-empty {
    flex: 0 0 155px;
}

/* ============ Inputs ============ */
.absih-p4-input-sm {
    padding: 4px 8px;
    border: none;
    border-bottom: 1px dotted #0a1e5e;
    border-radius: 0;
    font-size: 12px;
    color: #0a1e5e;
    background: transparent;
    font-family: inherit;
    flex: 1 1 100px;
    min-width: 0;
}

.absih-p4-input-full {
    padding: 4px 8px;
    border: none;
    border-bottom: 1px dotted #0a1e5e;
    border-radius: 0;
    font-size: 12px;
    color: #0a1e5e;
    background: transparent;
    font-family: inherit;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.absih-p4-input-sm:focus,
.absih-p4-input-full:focus {
    outline: none;
    border-bottom: 2px solid #0a1e5e;
    background: #ffffff;
}

.absih-p4-readonly {
    color: #475569 !important;
    background: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed;
}

/* ============ Checkbox ============ */
.absih-p4-checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.absih-p4-checkbox-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #0a1e5e;
    cursor: pointer;
}

/* ============ 2-Column Grid ============ */
.absih-p4-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 8px;
}

.absih-p4-grid-2 .absih-p4-pay-row {
    margin-bottom: 0;
}

/* ============ Nominee + Photo ============ */
.absih-p4-nominee-wrap {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-top: 12px;
    margin-bottom: 12px;
}

.absih-p4-nominee-fields {
    flex: 1;
    min-width: 0;
}

.absih-p4-photo-wrap {
    flex: 0 0 95px;
    width: 95px;
    height: 115px;
    position: relative;
}

.absih-p4-photo-input {
    display: none;
}

.absih-p4-photo-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: 1.5px solid #0a1e5e;
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(10, 30, 94, 0.08);
    position: relative;
}

.absih-p4-photo-label:hover {
    border-color: #16a34a;
    box-shadow: 0 4px 10px rgba(10, 30, 94, 0.15);
}

.absih-p4-photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.absih-p4-photo-placeholder {
    text-align: center;
    color: #64748b;
    font-size: 12px;
    line-height: 1.3;
    padding: 5px;
    user-select: none;
    z-index: 1;
}

.absih-p4-photo-placeholder small {
    font-size: 10px;
    display: block;
    margin-top: 2px;
}

/* ============ Declaration ============ */
.absih-p4-decl-bar {
    color: #0a1e5e;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    padding: 6px 10px;
    letter-spacing: 2px;
    margin: 15px 0 0;
    border-radius: 2px 2px 0 0;
}

.absih-p4-declaration {
    padding: 12px 15px;
    border: 1px solid #d1d9e8;
    border-top: none;
    border-radius: 0 0 2px 2px;
    margin-bottom: 15px;
}

.absih-p4-declaration p {
    font-size: 11px;
    line-height: 1.5;
    color: #0a1e5e;
    text-align: justify;
    margin: 0 0 12px;
}

.absih-p4-decl-accept {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #0a1e5e;
    cursor: pointer;
    padding: 8px 0;
    border-top: 1px solid #e5e9f2;
}

.absih-p4-decl-accept input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #0a1e5e;
    cursor: pointer;
}

.absih-p4-decl-accept strong {
    font-weight: 700;
    color: #0a1e5e;
}

/* ============ Signature Section (5 columns) ============ */
.absih-p4-signature-topline {
    width: 100%;
    height: 1px;
    background: #0a1e5e;
    margin: 20px 0 8px;
    padding: 0;
    display: block;
}

.absih-p4-signature-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: 0;
    padding: 8px 0 8px;
    background: transparent;
    border: none;
}

.absih-p4-sign-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 8px;
    border-right: 1px solid #c5d4e3;
    background: transparent;
    min-height: 42px;
}

.absih-p4-sign-col:last-child {
    border-right: none;
}

.absih-p4-sign-col:first-child {
    padding-left: 2px;
}

.absih-p4-sign-label {
    color: #0a1e5e;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-align: left;
    padding: 0 0 2px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    min-height: 18px;
    word-wrap: break-word;
}

.absih-p4-sign-line {
    width: 100%;
    height: 1px;
    background: #0a1e5e;
    border: none;
    margin: 0 0 3px;
    padding: 0;
    display: block;
}

.absih-p4-sign-date {
    color: #0a1e5e;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-align: left;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* ============ Navy Footer Bar ============ */
.absih-p4-footer-bar {
    display: block;
    background: #0000cc;
    width: 100%;
    height: 32px;
    margin: 0;
    padding: 0;
    clear: both;
}

/* ============ Mobile ============ */
@media (max-width: 640px) {
    .absih-p4-header {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    .absih-p4-header-logo-wrap {
        margin: 0 0 8px;
    }
    .absih-p4-header-text {
        text-align: center;
    }
    .absih-p4-body {
        padding: 12px;
    }
    .absih-p4-grid-2 {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .absih-p4-nominee-wrap {
        flex-direction: column-reverse;
    }
    .absih-p4-photo-wrap {
        margin: 0 auto;
    }
    .absih-p4-signature-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 6px 0;
    }
    .absih-p4-sign-col {
        border-right: 1px solid #c5d4e3;
        border-bottom: 1px solid #c5d4e3;
        padding: 4px 6px;
        min-height: 40px;
    }
    .absih-p4-sign-col:nth-child(2n) {
        border-right: none;
    }
    .absih-p4-sign-col:nth-last-child(-n+2) {
        border-bottom: none;
    }
    .absih-p4-footer-bar {
        height: 24px;
    }
}




