/**
 * ABSIH LOMS — Page 3 Styles (Personal Info + Photo Upload)
 */

@charset "UTF-8";

.absih-page[data-page="3"] .absih-form-container {
    padding: 0;
}

/* ============ Header ============ */
.absih-p3-header {
    background: #0a1e5e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 0;
}

.absih-p3-header-logo-wrap {
    flex: 0 0 70px;
}

.absih-p3-logo {
    display: block;
    height: 55px;
    width: auto;
}

.absih-p3-header-text {
    flex: 1;
    text-align: right;
}

.absih-p3-header-line1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
}

.absih-p3-header-line2 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #ffffff;
    line-height: 1.2;
    margin: 3px 0 0;
}

/* ============ PERSONAL INFORMATION bar ============ */
.absih-p3-section-bar {
    background: #d1d9e8;
    color: #0a1e5e;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    padding: 7px 10px;
    letter-spacing: 2px;
    border-bottom: 1px solid #a0b0cc;
}

/* ============ Body ============ */
.absih-p3-body {
    background: #e8f0f7;
    padding: 15px 18px 20px;
    position: relative;
    min-height: 400px;
}

/* ============ Photo Upload Box ============ */
.absih-p3-photo-wrap {
    position: absolute;
    top: 15px;
    right: 18px;
    width: 95px;
    height: 115px;
    z-index: 5;
}

.absih-p3-photo-input {
    display: none;
}

.absih-p3-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);
}

.absih-p3-photo-label:hover {
    border-color: #16a34a;
    box-shadow: 0 4px 10px rgba(10, 30, 94, 0.15);
}

.absih-p3-photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.absih-p3-photo-placeholder {
    text-align: center;
    color: #64748b;
    font-size: 12px;
    line-height: 1.3;
    padding: 5px;
    user-select: none;
}

.absih-p3-photo-placeholder small {
    font-size: 10px;
    display: block;
    margin-top: 2px;
}

/* ============ Field Rows ============ */
.absih-p3-field {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.absih-p3-body > .absih-p3-field:nth-of-type(1),
.absih-p3-body > .absih-p3-field:nth-of-type(2),
.absih-p3-body > .absih-p3-field:nth-of-type(3) {
    padding-right: 110px;
}

.absih-p3-label {
    flex: 0 0 155px;
    font-size: 12px;
    font-weight: 600;
    color: #0a1e5e;
    text-align: left;
}

.absih-p3-sep {
    flex: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    color: #0a1e5e;
    text-align: center;
}

.absih-p3-input {
    flex: 1 1 auto;
    padding: 4px 8px;
    border: none;
    border-bottom: 1px dotted #0a1e5e;
    border-radius: 0;
    font-size: 12px;
    color: #0a1e5e;
    background: transparent;
    transition: all 0.2s;
    min-width: 0;
    font-family: inherit;
}

.absih-p3-input:focus {
    outline: none;
    border-bottom: 2px solid #0a1e5e;
    background: #ffffff;
}

.absih-p3-readonly {
    color: #475569 !important;
    background: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed;
}

/* ============ 2-Column Row ============ */
.absih-p3-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.absih-p3-row-2 .absih-p3-field {
    margin-bottom: 0;
}

.absih-p3-row-2 .absih-p3-label {
    flex: 0 0 110px;
    font-size: 11.5px;
}

/* ============ Inline Field (Suite/SFT) ============ */
.absih-p3-row-inline {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.absih-p3-field-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.absih-p3-label-inline {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: #0a1e5e;
    white-space: nowrap;
}

.absih-p3-input-inline {
    flex: 1;
    padding: 4px 8px;
    border: none;
    border-bottom: 1px dotted #0a1e5e;
    border-radius: 0;
    font-size: 12px;
    color: #0a1e5e;
    background: transparent;
    font-family: inherit;
    min-width: 0;
}

.absih-p3-input-inline:focus {
    outline: none;
    border-bottom: 2px solid #0a1e5e;
    background: #ffffff;
}

/* ============ Spacer ============ */
.absih-p3-spacer {
    height: 8px;
}

/* ============ Radio Group ============ */
.absih-p3-radio-group {
    display: flex;
    gap: 25px;
    align-items: center;
    padding: 4px 0;
}

.absih-p3-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #0a1e5e;
    font-weight: 500;
    cursor: pointer;
}

.absih-p3-radio-label input[type="radio"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #0a1e5e;
}

/* ============ Mobile ============ */
@media (max-width: 640px) {
    .absih-p3-header {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    .absih-p3-header-logo-wrap {
        margin: 0 0 8px;
    }
    .absih-p3-header-text {
        text-align: center;
    }
    .absih-p3-header-line1 {
        font-size: 15px;
    }
    .absih-p3-header-line2 {
        font-size: 11px;
    }
    .absih-p3-photo-wrap {
        position: static;
        margin: 0 auto 15px;
        width: 100px;
        height: 120px;
    }
    .absih-p3-body > .absih-p3-field:nth-of-type(1),
    .absih-p3-body > .absih-p3-field:nth-of-type(2),
    .absih-p3-body > .absih-p3-field:nth-of-type(3) {
        padding-right: 0;
    }
    .absih-p3-body {
        padding: 12px;
    }
    .absih-p3-field {
        flex-wrap: wrap;
    }
    .absih-p3-label {
        flex: 1 1 100%;
        font-size: 11px;
    }
    .absih-p3-sep {
        display: none;
    }
    .absih-p3-input {
        flex: 1 1 100%;
        font-size: 13px;
    }
    .absih-p3-row-2 {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .absih-p3-row-inline {
        flex-direction: column;
        gap: 8px;
    }
    .absih-p3-radio-group {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}