/* ======================================
   Student Form System - Enhanced Styles
   Version: 1.9 - Pill-Shaped with Blue Background
   ====================================== */

/* ========================================
   BODY & GENERAL FIXES
   ======================================== */

body.sfs-no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ========================================
   BASE STYLES - COMPACT CONTAINER
   ======================================== */

.sfs-container {
    max-width: 580px;
    margin: 40px auto;
    font-family: 'Arial', 'Segoe UI', sans-serif;
}

.sfs-step {
    display: none;
    text-align: center;
}

.sfs-step.active {
    display: block;
}

/* Logo */
.sfs-logo {
    text-align: center;
    margin-bottom: 25px;
}

.sfs-logo img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

/* ========================================
   ID VERIFICATION SECTION - SOFT
   ======================================== */

#sfs-id-verify {
    background: #fff;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 
        0 4px 16px rgba(0,0,0,0.08),
        0 2px 8px rgba(0,0,0,0.06);
    border: none;
    margin: 20px;
}

#sfs-id-verify h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
}

/* ========================================
   STUDENT ID INPUT - PILL SHAPED
   ======================================== */

#sfs-student-id {
    width: 100%;
    padding: 13px 20px; /* ✅ Increased side padding for pill shape */
    font-size: 15px;
    border: none;
    border-radius: 50px; /* ✅ Full pill shape */
    margin-bottom: 18px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #f0f5fa; /* ✅ Light blue background */
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.06);
}

#sfs-student-id:focus {
    outline: none;
    background: #e8f0f8; /* ✅ Slightly darker blue on focus */
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(255, 102, 0, 0.15),
        0 0 0 3px rgba(255, 102, 0, 0.08);
    transform: translateY(-1px);
}

/* ========================================
   BUTTONS - SOFT SHADOWS
   ======================================== */

.sfs-btn {
    background: linear-gradient(135deg, #ff6600 0%, #ff7f33 100%);
    color: #fff;
    padding: 13px 35px;
    border: none;
    border-radius: 50px; /* ✅ Pill shaped button */
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(255, 102, 0, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.1);
    -webkit-tap-highlight-color: transparent;
}

.sfs-btn:hover {
    background: linear-gradient(135deg, #e55a00 0%, #ff6600 100%);
    box-shadow: 
        0 6px 18px rgba(255, 102, 0, 0.35),
        0 3px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.sfs-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(255, 102, 0, 0.3),
        0 1px 4px rgba(0, 0, 0, 0.1);
}

.sfs-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sfs-btn-small {
    background: #666;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 50px; /* ✅ Pill shaped */
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
    -webkit-tap-highlight-color: transparent;
}

.sfs-btn-small:hover {
    background: #444;
    box-shadow: 
        0 5px 12px rgba(0, 0, 0, 0.2),
        0 2px 5px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.sfs-btn-small:active {
    transform: translateY(0);
}

/* ========================================
   ERROR MESSAGE
   ======================================== */

.sfs-error {
    color: #d9534f;
    margin-top: 12px;
    font-size: 13px;
    padding: 10px 20px;
    background: rgba(217, 83, 79, 0.1);
    border-radius: 50px; /* ✅ Pill shaped */
    border: none;
    box-shadow: 0 2px 4px rgba(217, 83, 79, 0.1);
}

/* ========================================
   MODAL - SOFT (NO SCROLL)
   ======================================== */

.sfs-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.sfs-modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 28px 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 580px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.15),
        0 5px 20px rgba(0,0,0,0.1);
    border: none;
    -webkit-overflow-scrolling: touch;
}

/* Close Button */
.sfs-close {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    width: 34px;
    height: 34px;
    text-align: center;
    border-radius: 50%;
}

.sfs-close:hover {
    color: #fff;
    background: #ff6600;
    transform: rotate(90deg);
}

/* ========================================
   FORM FIELDS - PILL SHAPED WITH BLUE BG
   ======================================== */
/* ========================================
   FORM FIELDS - ALWAYS GRAY BACKGROUND
   ======================================== */

.sfs-field {
    margin-bottom: 16px !important;
    text-align: left !important;
}

.sfs-field label {
    display: block !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 14px !important;
}

/* ✅ Input fields - ALWAYS GRAY (no click needed) */
.sfs-field input[type="text"],
.sfs-field input[type="tel"],
.sfs-field input[type="email"] {
    width: 100% !important;
    padding: 11px 18px !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    background: #f5f5f5 !important; /* ✅ ALWAYS GRAY */
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

/* ✅ Focus (click) state - SAME GRAY */
.sfs-field input[type="text"]:focus,
.sfs-field input[type="tel"]:focus,
.sfs-field input[type="email"]:focus {
    outline: none !important;
    background: #f5f5f5 !important; /* ✅ SAME GRAY */
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(255, 102, 0, 0.15),
        0 0 0 3px rgba(255, 102, 0, 0.08) !important;
    transform: translateY(-1px) !important;
}

/* Readonly fields */
.sfs-field input[readonly] {
    background-color: #e8e8e8 !important;
    cursor: not-allowed !important;
    border-radius: 50px !important;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    color: #666 !important;
}


/* ========================================
   SIGNATURE PAD - SOFT SHADOW
   ======================================== */

#signature-pad {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 160px;
    border: none;
    border-radius: 10px;
    background-color: #ffd9a9;
    cursor: crosshair;
    touch-action: none;
    margin: 12px 0;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.08),
        inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

#signature-pad:hover {
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(255, 102, 0, 0.1),
        inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

#signature-pad:active {
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(255, 102, 0, 0.15),
        inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

#clear-signature {
    background: #666;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 50px; /* ✅ Pill shaped */
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
    -webkit-tap-highlight-color: transparent;
}

#clear-signature:hover {
    background: #444;
    box-shadow: 
        0 5px 12px rgba(0, 0, 0, 0.2),
        0 2px 5px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

#clear-signature:active {
    transform: translateY(0);
}

/* ========================================
   TERMS & CONDITIONS - SOFT
   ======================================== */

.sfs-terms-box {
    background: #fafafa;
    padding: 15px;
    border: none;
    border-radius: 10px;
    margin: 16px 0;
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06),
        inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.sfs-terms-box h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.sfs-terms-box p,
.sfs-terms-box div {
    font-size: 12px;
    line-height: 1.6;
    color: #555;
    white-space: pre-line;
    margin: 6px 0;
}
 #terms-text-content {
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.7;
  color: #333;

}


/* ========================================
   CHECKBOX - SOFT
   ======================================== */

.sfs-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 11px 15px;
    background: #fafafa;
    border-radius: 50px; /* ✅ Pill shaped */
    border: none;
    transition: all 0.3s ease;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.06);
    -webkit-tap-highlight-color: transparent;
}

.sfs-checkbox:hover {
    background: #f0f5fa; /* ✅ Light blue on hover */
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(255, 102, 0, 0.12);
}

.sfs-checkbox input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.sfs-checkbox span {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

/* ========================================
   FORM MESSAGES
   ======================================== */

#sfs-form-msg {
    margin-top: 12px;
}

#sfs-form-msg .error {
    color: #d9534f;
    background: rgba(217, 83, 79, 0.1);
    padding: 10px 18px;
    border-radius: 50px; /* ✅ Pill shaped */
    border-left: 4px solid #d9534f;
    font-size: 13px;
    box-shadow: 0 2px 4px rgba(217, 83, 79, 0.1);
}

/* ========================================
   SUCCESS SCREEN
   ======================================== */

#sfs-success {
    background: #fff;
    padding: 50px 35px;
    border-radius: 15px;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.12),
        0 4px 15px rgba(0, 0, 0, 0.08);
    margin: 20px;
    border: none;
}

#sfs-success h2 {
    color: #5cb85c;
    font-size: 28px;
    margin-bottom: 18px;
}

#sfs-success p {
    color: #666;
    font-size: 16px;
}

/* ========================================
   ALREADY SUBMITTED SCREEN
   ======================================== */

#sfs-already-submitted {
    display: none;
}

.sfs-submitted-box {
    max-width: 580px;
    margin: 25px auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    border-radius: 15px;
    padding: 40px 35px;
    text-align: center;
    box-shadow: 
        0 8px 30px rgba(76, 175, 80, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sfs-icon-check {
    width: 85px;
    height: 85px;
    line-height: 85px;
    font-size: 50px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border-radius: 50%;
    margin: 0 auto 22px;
    box-shadow: 
        0 8px 25px rgba(76, 175, 80, 0.4),
        0 4px 12px rgba(76, 175, 80, 0.3);
    animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.sfs-submitted-box h2 {
    color: #4caf50;
    margin-bottom: 18px;
    font-size: 26px;
    font-weight: bold;
}

.sfs-student-id-display,
.sfs-date-display {
    font-size: 15px;
    color: #555;
    margin: 10px 0;
}

.sfs-student-id-display strong,
.sfs-date-display strong {
    color: #333;
}

.sfs-warning {
    color: #ff5722;
    font-style: italic;
    margin-top: 22px;
    font-size: 15px;
    font-weight: 500;
    background: #fff3e0;
    padding: 16px 20px;
    border-radius: 50px; /* ✅ Pill shaped */
    border-left: 4px solid #ff5722;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.15);
}

.sfs-note {
    color: #666;
    font-size: 13px;
    margin-top: 14px;
    font-style: italic;
}

/* ========================================
   STUDENT ID DISPLAY IN MODAL
   ======================================== */

#display-student-id-text {
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

/* ========================================
   MOBILE RESPONSIVE (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
    .sfs-container {
        margin: 10px;
        padding: 0;
    }
    
    .sfs-modal-content {
        width: 94%;
        padding: 20px 16px;
        margin: 3% auto;
        border-radius: 12px;
    }
    
    #sfs-id-verify {
        padding: 25px 18px;
        margin: 12px;
    }
    
    .sfs-field {
        margin-bottom: 14px;
    }
    
    .sfs-field label {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .sfs-field input[type="text"],
    .sfs-field input[type="tel"],
    .sfs-field input[type="email"] {
        padding: 11px 16px;
        font-size: 15px;
    }
    
    #signature-pad {
        height: 140px;
        margin: 10px 0;
    }
    
    #clear-signature,
    .sfs-btn-small {
        width: 100%;
        padding: 12px 18px;
        font-size: 14px;
        margin-top: 10px;
    }
    
    .sfs-btn {
        width: 100%;
        padding: 14px 18px;
        font-size: 16px;
    }
    
    .sfs-terms-box {
        padding: 12px;
        max-height: 180px;
        margin: 12px 0;
    }
    
    .sfs-checkbox {
        padding: 10px 14px;
    }
    
    .sfs-logo img {
        max-width: 90px;
    }
    
    .sfs-close {
        font-size: 32px;
        width: 38px;
        height: 38px;
        line-height: 38px;
    }
    
    .sfs-submitted-box {
        padding: 28px 18px;
        margin: 12px;
    }
    
    .sfs-icon-check {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 40px;
    }
    
    .sfs-submitted-box h2 {
        font-size: 22px;
    }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
    .sfs-modal-content {
        width: 96%;
        padding: 18px 14px;
    }
    
    #sfs-id-verify {
        padding: 22px 16px;
        margin: 10px;
    }
    
    .sfs-field input[type="text"],
    .sfs-field input[type="tel"],
    .sfs-field input[type="email"] {
        padding: 10px 14px;
    }
    
    #signature-pad {
        height: 130px;
    }
    
    .sfs-btn {
        padding: 13px 16px;
        font-size: 15px;
    }
    
    .sfs-icon-check {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 35px;
    }
    
    .sfs-submitted-box h2 {
        font-size: 20px;
    }
}

/* ========================================
   LANDSCAPE MODE
   ======================================== */

@media (max-width: 768px) and (orientation: landscape) {
    .sfs-modal-content {
        max-height: 88vh;
        padding: 18px 20px;
    }
    
    #signature-pad {
        height: 110px;
    }
    
    .sfs-field {
        margin-bottom: 12px;
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */

@media (hover: none) and (pointer: coarse) {
    .sfs-btn,
    .sfs-btn-small,
    #clear-signature {
        min-height: 44px;
    }
    
    .sfs-checkbox {
        min-height: 44px;
    }
}

/* ========================================
   WEBKIT & BUTTON FIXES
   ======================================== */



button,
.sfs-btn,
.sfs-btn-small {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ========================================
   OTP ACTION BUTTONS - PILL SHAPE BLUE
   ======================================== */

/* Send OTP and Verify OTP buttons */
.sfs-btn-otp,
.sfs-btn-verify {
    background: #F66200 !important;
    color: #fff;
    padding: 11px 28px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 0px !important;
    margin-top: 11px !important;
    transition: all 0.3s;
    box-shadow: 
        0 3px 12px rgba(33, 203, 243, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.10);
    -webkit-tap-highlight-color: transparent;
    vertical-align: middle;
}

.sfs-btn-otp:hover,
.sfs-btn-verify:hover {
    background: #F66200 !important;
    box-shadow: 
        0 5px 16px rgba(33, 203, 243, 0.20),
        0 2px 8px rgba(0, 0, 0, 0.13);
    transform: translateY(-1.5px) scale(1.04);
}

.sfs-btn-otp:active,
.sfs-btn-verify:active {
    background:#F66200 !important;
    transform: translateY(0);
    box-shadow: 
        0 3px 12px rgba(33, 203, 243, 0.11),
        0 1px 4px rgba(0, 0, 0, 0.09);
}

.sfs-btn-otp:disabled,
.sfs-btn-verify:disabled {
    background: #b5d2ea;
    color: #f7faff;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.75;
}

 #terms-text-content {
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.7;
  color: #333;

}
