/* Section Background */
.contact-form-section {
    background: linear-gradient(145deg, #274e9b 0%, #F41E1E 100%);
    padding: 50px 0;
}

/* Headings */
.contact-form-section h3,
.contact-form-section h6 {
    color: #ffffff;
    font-weight: bold;
}

.contact-form-section h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-form-section h6 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Labels */
.text-input label {
    color: #ffffff !important;
    font-weight: 500;
}

/* Inputs and Selects */
input[type="text"],
input[type="date"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="file"],
input[type="url"],
textarea,
select {
    background-color: #ffffff !important;
    border: 2px solid #1e3a78;
    border-radius: 6px;
    color: #ccc !important;
    /* Ensures typed text is dark and visible */
    padding: 12px 14px;
    width: 100%;
    font-size: 16px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input::placeholder,
textarea::placeholder {
    color: #ccc;
    font-size: 15px;
}

input:focus,
textarea:focus,
select:focus {
    background-color: #ffffff !important;
    color: #000 !important;
    border-color: #F41E1E;
    outline: none;
    box-shadow: 0 0 5px rgba(244, 30, 30, 0.3);
}

/* Checkbox Labels */
.checkbox-item label span {
    color: #ffffff !important;
    font-weight: 500;
}

/* Image next to checkbox */
.checkbox-item img {
    vertical-align: middle;
    margin-right: 8px;
    border: 2px solid #ffffff;
}

/* Price */
p.mt-50 {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
}

/* Submit Button */
.prt-btn {
    /* background-color: #F41E1E !important;
        color: #ffffff !important;
        border: 2px solid #ffffff; */
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}

.prt-btn:hover {
    /* background-color: #ffffff !important;
        color: #F41E1E !important;
        border-color: #F41E1E; */
    cursor: pointer;
}

/* Error message */
.error {
    color: #F41E1E !important;
    font-size: 14px !important;
    margin-top: 5px;
}

/* Total Section */
.col-lg-6 h6.ml-450,
.col-lg-6 p {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

/* Dropdown text color */
select option {
    color: #274e9b;
}

/* Card-like Fee Selection */
.fee-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin: 15px 0;
    background: #ffffff;
    border: 3px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.fee-card.active {
    border-color: #4CAF50;
    background-color: #f0f0f0;
    opacity: 1;
}

.fee-card.disabled {
    pointer-events: none;
    opacity: 0.3;
}

.fee-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.fee-card p {
    margin: 0;
    color: #274e9b;
    font-weight: 600;
    font-size: 16px;
}

.fee-card strong {
    margin-left: auto;
    color: #274e9b;
    font-size: 16px;
}

.fee-card.selected {
    border-color: #F41E1E;
    background: #ffe6e6;
}

.total {
    display: flex;
    justify-content: flex-end;
}

.registration-fee {
    display: flex;
    justify-content: flex-start;
}

.total strong {
    background-color: #ffffff;
    color: #F41E1E;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.total strong span {
    color: #274e9b;
}

.multi-select-dropdown {
    position: relative;
    font-family: inherit;
}

.dropdown-input {
    background-color: #fff !important;
    color: #ccc !important;
    padding: 12px 14px;
    height: 50px;
    font-size: 16px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    line-height: inherit;
    letter-spacing: 0px;
    border: 1px solid #fff;
    border-radius: 6px;
    cursor: pointer;
}

.dropdown-options {
    display: none;
    position: absolute;
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #fff;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 2px;
    z-index: 999;
    border-radius: 5px;
    padding: 8px;
}

.dropdown-options label {
    color: #000 !important;
    display: block;
    margin-bottom: 5px;
    cursor: pointer;
}

/* Age Groups Selection */
.age-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.age-group-card {
    background: #f8f9fa;
    color: #ccc;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.age-group-card:hover {
    color: #000;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

.age-group-card.selected {
    background: linear-gradient(135deg, #3d63c7, #274e9b);
    color: white;
    border-color: #fff;
    animation: pulse 0.3s ease;
}

.age-group-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Training Times Section */
.training-times-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.training-times-section.active {
    border-color: #fff;
    border-style: solid;
    background: transparent;
}

.training-times-section.has-error {
    border: 2px solid #dc3545;
    border-radius: 5px;
    padding: 10px;
}

.training-schedule-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
}

.age-group-training {
    margin-bottom: 25px;
    background: white;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #274e9b;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.age-group-title {
    font-size: 16px;
    font-weight: 600;
    color: #274e9b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.age-group-title::before {
    content: '🏃‍♂️';
    font-size: 18px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.time-slot {
    background: #fff;
    color: #ccc;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-slot label {
    color: #ccc;
}

.time-slot:hover {
    background: #e9ecef;
    color: #000;
    transform: translateY(-1px);
}

.time-slot.selected {
    background: linear-gradient(135deg, #3d63c7, #274e9b);
    color: white;
    border-color: #667eea;
}

.time-slot input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.time-slot.selected input[type="checkbox"] {
    accent-color: white;
}

.empty-state {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Summary Section */
.selection-summary {
    background: white;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.summary-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.summary-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-left: 3px solid #274e9b;
}

.summary-age-group {
    font-weight: 600;
    color: #274e9b;
    margin-bottom: 5px;
}

.summary-times {
    font-size: 14px;
    color: #666;
}

/* Hidden inputs for form submission */
.hidden-inputs {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .age-groups-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }

    .time-slots-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive design */
@media (min-width: 768px) and (max-width: 1110px) {
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Custom backdrop for QR modal */
.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

.custom-modal-backdrop.show {
    display: block;
}

/* Custom QR Modal Styles */
.qr-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.qr-popup.active {
    display: flex;
}

.qr-popup-content {
    background: white;
    border-radius: 10px;
    padding: 50px 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.qr-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    z-index: 10000;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-close-btn:hover {
    color: #000;
    background-color: #f0f0f0;
    border-radius: 50%;
}

.qr-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.qr-code-container {
    text-align: center;
    margin: 20px 0;
}

.qr-code-img {
    max-width: 250px;
    height: auto;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    margin: 15px 0;
}

.payment-instructions {
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 10px;
}

.file-upload-label {
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.file-upload-label:hover {
    background-color: #e9ecef;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.form-check-input {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #3498db;
    background-color: transparent;
}

.form-check-label {
    margin: 0;
    color: #2c3e50 !important;
    font-weight: 500;
    cursor: pointer;
}