/* Custom Form Styles for NMIMS CDOE Inquire Now Form */

/* Force hide all standard circular radio inputs globally to prevent rendering */
input[type="radio"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

.free_sample_form {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px 24px;
    margin-top: 60px;
    box-sizing: border-box;
    font-family: 'Open Sans', 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
}

.free_sample_form h3 {
    font-family: 'merriweatherregular', Georgia, serif;
    font-size: 26px;
    color: #333333;
    margin: 0 0 4px 0;
    text-align: center;
    font-weight: bold;
}

.free_sample_form .form-subtitle {
    font-family: 'robotoregular', sans-serif;
    font-size: 13px;
    color: #888888;
    text-align: center;
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Step indicator */
.form-progress-container {
    margin-bottom: 22px;
}

.form-progress-bar {
    height: 4px;
    background: #eeeeee;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.form-progress-fill {
    height: 100%;
    background: #d02f38;
    width: 50%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: #999999;
    font-weight: 600;
}

.form-progress-step.active {
    color: #d02f38;
}

/* Form Groups & Labels */
.form-group {
    margin-bottom: 16px;
    text-align: left;
    position: relative;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #36183e;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Form Controls (Inputs) */
.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    color: #333333;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fafafa;
}

.form-control:focus {
    border-color: #d02f38;
    box-shadow: 0 0 0 3px rgba(208, 47, 56, 0.15);
    background-color: #ffffff;
}

.form-control::placeholder {
    color: #aaaaaa;
}

/* Phone input with fixed country code */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background-color: #fafafa;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input-wrapper:focus-within {
    border-color: #d02f38;
    box-shadow: 0 0 0 3px rgba(208, 47, 56, 0.15);
    background-color: #ffffff;
}

.phone-input-wrapper .country-code {
    padding: 10px 14px;
    background: #eeeeee;
    font-size: 14px;
    font-weight: 700;
    color: #555555;
    border-right: 1px solid #cccccc;
    user-select: none;
}

.phone-input-wrapper .phone-input {
    border: none;
    border-radius: 0;
    background-color: transparent;
    flex-grow: 1;
    padding: 10px 14px;
}

.phone-input-wrapper .phone-input:focus {
    box-shadow: none;
    background-color: transparent;
}

/* Custom Grid for Course Radio Select */
.course-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.course-option-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.course-option-card input[type="radio"] {
    display: none !important;
}

.course-option-card .card-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #555555;
    background: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s ease;
    user-select: none;
    min-height: 42px;
    box-sizing: border-box;
}

.course-option-card:hover .card-text {
    border-color: #bbb;
    background: #f5f5f5;
}

.course-option-card input[type="radio"]:checked + .card-text {
    border-color: #d02f38;
    background: #fdf2f2;
    color: #d02f38;
    box-shadow: 0 2px 8px rgba(208, 47, 56, 0.1);
}

/* Custom Radio Grid for Admission Timeline */
.timeline-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.timeline-option-pill {
    position: relative;
    cursor: pointer;
    display: block;
}

.timeline-option-pill input[type="radio"] {
    display: none !important;
}

.timeline-option-pill .pill-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    font-size: 12px;
    font-weight: 600;
    color: #555555;
    background: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 20px;
    text-align: center;
    transition: all 0.2s ease;
    user-select: none;
}

.timeline-option-pill:hover .pill-text {
    border-color: #bbb;
    background: #f5f5f5;
}

.timeline-option-pill input[type="radio"]:checked + .pill-text {
    border-color: #d02f38;
    background: #fdf2f2;
    color: #d02f38;
}

/* Error Messages */
.error-msg {
    color: #e01a21;
    font-size: 11px;
    margin-top: 4px;
    display: none;
    font-weight: 600;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons and Actions */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.next-btn {
    background: #d02f38;
    color: #ffffff;
    width: 100%;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.next-btn:hover {
    background: #b5252d;
    box-shadow: 0 4px 12px rgba(208, 47, 56, 0.2);
}

.next-btn:active {
    transform: scale(0.98);
}

.form-actions .next-btn {
    width: 65%;
    margin-top: 0;
}

.back-btn {
    background: #f1f1f1;
    color: #555555;
    border: 1px solid #cccccc;
    width: 35%;
}

.back-btn:hover {
    background: #e5e5e5;
}

/* Steps Transition */
.form-step {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Success Screen Styles */
.success-screen {
    padding: 30px 10px;
    animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    margin-bottom: 18px;
}

.success-screen h4 {
    font-family: 'merriweatherregular', Georgia, serif;
    font-size: 24px;
    color: #25d366;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.success-screen p {
    font-size: 14px;
    color: #555555;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.success-screen p.sub-text {
    font-size: 12px;
    color: #888888;
    margin-bottom: 24px;
}

.reset-btn {
    background: #36183e;
    color: #ffffff;
    width: 100%;
}

.reset-btn:hover {
    background: #25102a;
}

/* Popup Modal Overlay */
.popup-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal Box Container */
.popup-modal-container {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(15px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Close Button (X) */
.popup-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    font-weight: 300;
    color: #888888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10100;
}

.popup-modal-close:hover {
    color: #d02f38;
    transform: scale(1.1);
}

.popup-modal-close:active {
    transform: scale(0.9);
}

/* Modifies free_sample_form when inside modal */
.popup-modal-container .free_sample_form {
    margin-top: 0;
    box-shadow: none;
    border: none;
    border-radius: 12px;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
    .free_sample_form {
        margin-top: 20px;
        box-shadow: none;
        border: 1px solid #eeeeee;
        padding: 20px 20px;
    }
}

@media (max-width: 480px) {
    .free_sample_form {
        padding: 16px 14px;
        margin-top: 15px;
    }
    
    .free_sample_form h3 {
        font-size: 22px;
    }
    
    .course-options-grid {
        gap: 6px;
    }
    
    .course-option-card .card-text {
        font-size: 12px;
        padding: 10px 4px;
        min-height: 38px;
    }
    
    .timeline-options {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .timeline-option-pill .pill-text {
        font-size: 12px;
        padding: 8px 4px;
    }
    
    .form-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}
