/* =============================================================
   COMPONENTS — Form container, instructions, iframe, overlays, FAB
   ============================================================= */

/* --- Form Container --- */
.form-container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    overflow: hidden;
    border: 1px solid rgba(0,48,135,0.08);
}

.form-header {
    text-align: center;
    padding: 50px 40px 35px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.form-header h1 {
    color: #003087;
    font-size: 32px;
    margin-bottom: 14px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.form-header .highlight {
    color: #ba0c2f;
    font-weight: 700;
}

.form-header p {
    color: #666;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Instructions Box --- */
.instructions-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 5px solid #003087;
    border-radius: 16px;
    padding: 28px;
    margin: 0 40px 35px;
    box-shadow: 0 4px 16px rgba(0,48,135,0.08);
}

.instructions-box h3 {
    color: #003087;
    font-size: 19px;
    margin-bottom: 20px;
    font-weight: 600;
}

.instructions-list {
    display: grid;
    gap: 14px;
}

.instruction-item {
    display: flex;
    align-items: start;
    gap: 14px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,48,135,0.06);
}

.instruction-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,48,135,0.1);
}

.instruction-number {
    background: linear-gradient(135deg, #ba0c2f 0%, #d4154a 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(186, 12, 47, 0.3);
}

.instruction-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

/* --- Iframe / Form Area --- */
.iframe-container {
    width: 100%;
    height: 700px;
    border: none;
    background-color: #fafafa;
    position: relative;
    border-radius: 0 0 20px 20px;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fafafa;
    color: #003087;
    font-size: 16px;
    gap: 18px;
}

/* --- Expired / Unavailable Overlay --- */
.expired-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fafafa;
    padding: 40px;
    text-align: center;
}

.expired-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C8102E 0%, #a00d25 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.25);
}

.expired-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.expired-overlay h2 {
    color: #C8102E;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.expired-overlay p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    max-width: 480px;
}

.expired-overlay .contact-note {
    margin-top: 20px;
    padding: 16px 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 13px;
    color: #888;
}

.proceed-late-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #003087 0%, #001f5c 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,48,135,0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.proceed-late-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,48,135,0.4);
}

/* --- Completed Overlay --- */
.completed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fafafa;
    padding: 40px;
    text-align: center;
}

.completed-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.25);
}

.completed-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.branch-tag {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.completed-date {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

.late-warning-tag {
    display: inline-block;
    background: #f57c00;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- Floating Guide Button --- */
.guide-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #003087 0%, #001f5c 100%);
    color: #fff;
    padding: 14px 22px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(0,48,135,0.35);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    animation: fab-pulse 2.5s ease-in-out 3;
}

.guide-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0,48,135,0.45);
    animation: none;
}

.guide-fab svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}
