/* FC Academy Registration Form Styles */

/* .fc-registration-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
} */

.fc-form-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.fc-registration-form {
    display: flex;
    flex-wrap: wrap;
}

.fc-main-student-info-group {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.fc-form-field {
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

.fc-pricing-details,
.fc-submit-button-wrapper,
.fc-form-messages {
    flex: 0 0 100%;
    max-width: 100%;
}

.fc-form-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.fc-form-field label .required {
    color: #e74c3c;
}

.fc-form-field input[type="text"],
.fc-form-field select,
.fc-camp-form-field input[type="text"],
.fc-camp-form-field select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.fc-form-field select,
.fc-camp-form-field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23333" d="M1.41 0L6 4.58 10.59 0 12 1.42l-6 6-6-6z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

.fc-form-field input[type="text"]:focus,
.fc-form-field select:focus,
.fc-camp-form-field input[type="text"]:focus,
.fc-camp-form-field select:focus {
    outline: none;
    border-color: #3498db;
}


.fc-form-field input[readonly]:not(#fc_dob):not(.fc-sibling-dob) {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Date picker inputs should look clickable */
.fc-form-field input[readonly]#fc_dob,
.fc-form-field input[readonly].fc-sibling-dob,
input[readonly].fc-sibling-dob {
    background-color: #fff;
    cursor: pointer;
}

.fc-form-field select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Custom Select Dropdown Styles */
.fc-custom-select-wrapper {
    position: relative;
    width: 100%;
}

/* Hide the original select element */
.fc-select-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.fc-custom-select-display {
    position: relative;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    padding: 12px 40px 12px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fc-custom-select-display:hover {
    border-color: #3498db;
}

.fc-custom-select-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-custom-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
    transition: transform 0.3s;
    pointer-events: none;
}

.fc-custom-select-dropdown.is-open + .fc-custom-select-display .fc-custom-select-arrow,
.fc-custom-select-display:has(+ .fc-custom-select-dropdown.is-open) .fc-custom-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.fc-custom-select-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 240px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fc-custom-select-dropdown.is-open {
    display: block;
    animation: fcDropdownSlide 0.2s ease-out;
}

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

.fc-custom-select-option {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    font-size: 14px;
}

.fc-custom-select-option:last-child {
    border-bottom: none;
}

.fc-custom-select-option:hover {
    background-color: #d32f2f;
    color: #fff;
}

.fc-custom-select-option.is-selected {
    background-color: #d32f2f;
    color: #fff;
    font-weight: 600;
}

.fc-custom-select-option.is-selected:hover {
    background-color: #b71c1c;
}

/* Scrollbar styling for dropdown */
.fc-custom-select-dropdown::-webkit-scrollbar {
    width: 8px;
}

.fc-custom-select-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 4px 4px 0;
}

.fc-custom-select-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.fc-custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Pricing Details */
.fc-pricing-details {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #3498db;
}

.fc-pricing-breakdown h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.fc-pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.fc-pricing-table tr {
    border-bottom: 1px solid #eee;
}

.fc-pricing-table tr:last-child {
    border-bottom: none;
}

.fc-pricing-table td {
    padding: 10px 0;
}

.fc-pricing-table td:first-child {
    color: #666;
}

.fc-pricing-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.fc-pricing-total td {
    font-size: 18px;
    padding-top: 15px;
    color: #3498db;
}

/* Submit Button */
.fc-submit-button {
    width: 100%;
    padding: 15px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.fc-submit-button:hover {
    background: #2980b9;
}

.fc-submit-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Messages */
.fc-form-messages {
    margin-top: 20px;
}

.fc-form-messages p {
    padding: 15px;
    border-radius: 4px;
    margin: 0;
}

.fc-form-messages .success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fc-form-messages .error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .fc-form-title {
        font-size: 24px;
    }
}

/* Admin Styles */
.fc-pricing-table td {
    font-size: 14px;
}

/* Air Datepicker Enhancements */
.fc-form-field .air-datepicker {
    z-index: 1000;
}

/* Make sure datepicker is properly positioned */
.air-datepicker {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

/* Date input field icon indicator */
.fc-form-field input[readonly]#fc_dob,
.fc-form-field input[readonly].fc-sibling-dob,
input[readonly].fc-sibling-dob {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

/* Button Alignment Styles */
/* Desktop */
.fc-camp-align-left .fc-camp-form-actions { text-align: left; }
.fc-camp-align-left .fc-camp-submit-button { width: auto; display: inline-block; }

.fc-camp-align-center .fc-camp-form-actions { text-align: center; }
.fc-camp-align-center .fc-camp-submit-button { width: auto; display: inline-block; }

.fc-camp-align-right .fc-camp-form-actions { text-align: right; }
.fc-camp-align-right .fc-camp-submit-button { width: auto; display: inline-block; }

.fc-camp-align-justify .fc-camp-submit-button { width: 100%; display: block; }

.fc-form-align-left .fc-submit-button-wrapper { text-align: left; }
.fc-form-align-left .fc-submit-button { width: auto; display: inline-block; }

.fc-form-align-center .fc-submit-button-wrapper { text-align: center; }
.fc-form-align-center .fc-submit-button { width: auto; display: inline-block; }

.fc-form-align-right .fc-submit-button-wrapper { text-align: right; }
.fc-form-align-right .fc-submit-button { width: auto; display: inline-block; }

.fc-form-align-justify .fc-submit-button { width: 100%; display: block; }

/* Tablet */
@media (max-width: 1024px) {
    .fc-camp-align-tablet-left .fc-camp-form-actions { text-align: left; }
    .fc-camp-align-tablet-center .fc-camp-form-actions { text-align: center; }
    .fc-camp-align-tablet-right .fc-camp-form-actions { text-align: right; }
    
    .fc-camp-align-tablet-justify .fc-camp-submit-button { width: 100%; }
    
    /* Reset width if switching from Justify to others on Tablet */
    .fc-camp-align-tablet-left .fc-camp-submit-button,
    .fc-camp-align-tablet-center .fc-camp-submit-button,
    .fc-camp-align-tablet-right .fc-camp-submit-button {
        width: auto;
    }

    .fc-form-align-tablet-left .fc-submit-button-wrapper { text-align: left; }
    .fc-form-align-tablet-center .fc-submit-button-wrapper { text-align: center; }
    .fc-form-align-tablet-right .fc-submit-button-wrapper { text-align: right; }
    
    .fc-form-align-tablet-justify .fc-submit-button { width: 100%; }
    
    /* Reset width if switching from Justify to others on Tablet */
    .fc-form-align-tablet-left .fc-submit-button,
    .fc-form-align-tablet-center .fc-submit-button,
    .fc-form-align-tablet-right .fc-submit-button {
        width: auto;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .fc-camp-align-mobile-left .fc-camp-form-actions { text-align: left; }
    .fc-camp-align-mobile-center .fc-camp-form-actions { text-align: center; }
    .fc-camp-align-mobile-right .fc-camp-form-actions { text-align: right; }
    
    .fc-camp-align-mobile-justify .fc-camp-submit-button { width: 100%; }

    /* Reset width if switching from Justify to others on Mobile */
    .fc-camp-align-mobile-left .fc-camp-submit-button,
    .fc-camp-align-mobile-center .fc-camp-submit-button,
    .fc-camp-align-mobile-right .fc-camp-submit-button {
        width: auto;
    }

    .fc-form-align-mobile-left .fc-submit-button-wrapper { text-align: left; }
    .fc-form-align-mobile-center .fc-submit-button-wrapper { text-align: center; }
    .fc-form-align-mobile-right .fc-submit-button-wrapper { text-align: right; }
    
    .fc-form-align-mobile-justify .fc-submit-button { width: 100%; }

    /* Reset width if switching from Justify to others on Mobile */
    .fc-form-align-mobile-left .fc-submit-button,
    .fc-form-align-mobile-center .fc-submit-button,
    .fc-form-align-mobile-right .fc-submit-button {
        width: auto;
    }
}

/* ==========================================================================
   Low Slots Warning
   ========================================================================== */

.fc-low-slots-warning {
    display: inline-block;
    background-color: #dc3545;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    vertical-align: middle;
}

/* Zoom in/out animation */
.fc-low-slots-warning.fc-low-slots-animated {
    animation: fc-pulse-zoom 1.5s ease-in-out infinite;
}

@keyframes fc-pulse-zoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Session label styling */
.fc-session-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.fc-session-label.fc-session-full {
    background-color: #f8f8f8;
}

/* Mobile responsive */
@media screen and (max-width: 480px) {
    .fc-low-slots-warning {
        display: block;
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }
}
