/**
 * STEM Registration Form Styles
 * Modern, responsive design for registration and payment form
 */

.stem-registration-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.stem-registration-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(118, 3, 208, 0.15);
    padding: 40px;
}

.stem-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
    text-align: center;
}

.stem-form-subtitle {
    font-size: 16px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 30px;
}

.stem-registration-form {
    max-width: 100%;
}

.stem-form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #dee2e6;
}

.stem-form-section:last-of-type {
    border-bottom: none;
}

.stem-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #7603D0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #7603D0;
}

.stem-form-subsection {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stem-subsection-title {
    font-size: 18px;
    font-weight: 600;
    color: #7603D0;
    margin-bottom: 20px;
}

.stem-form-group {
    margin-bottom: 20px;
}

.stem-form-group label {
    display: block;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
    font-size: 14px;
}

.stem-form-group .required {
    color: #e74c3c;
    margin-left: 3px;
}

.stem-form-group input[type="text"],
.stem-form-group input[type="email"],
.stem-form-group input[type="tel"],
.stem-form-group input[type="date"],
.stem-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

/* Flatpickr date picker styling */
.flatpickr-input {
    cursor: pointer;
}

.flatpickr-calendar {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(118, 3, 208, 0.15);
    border: 1px solid #dee2e6;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #7603D0;
    border-color: #7603D0;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #7D297E;
    border-color: #7D297E;
}

.flatpickr-day:hover {
    background: #f3e8ff;
}

.flatpickr-months .flatpickr-month {
    color: #7603D0;
}

.flatpickr-weekdays {
    background: #f8f9fa;
}

.flatpickr-weekday {
    color: #6c757d;
    font-weight: 600;
}

.stem-form-group input:focus,
.stem-form-group select:focus {
    outline: none;
    border-color: #7603D0;
    box-shadow: 0 0 0 3px rgba(118, 3, 208, 0.1);
}

.stem-form-group input.error,
.stem-form-group select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Payment Options */
.stem-payment-description {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 20px;
}

.stem-payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stem-payment-option {
    position: relative;
}

.stem-payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.stem-payment-option label {
    display: block;
    padding: 20px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    text-align: center;
}

.stem-payment-option input[type="radio"]:checked + label {
    border-color: #7603D0;
    background: #f3e8ff;
    box-shadow: 0 4px 12px rgba(118, 3, 208, 0.2);
}

.stem-payment-option label:hover {
    border-color: #7603D0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(118, 3, 208, 0.15);
}

.payment-option-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
}

.payment-option-amount {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #7603D0;
    margin-bottom: 8px;
}

.payment-option-desc {
    display: block;
    font-size: 13px;
    color: #6c757d;
}

/* Submit Button */
.stem-form-submit {
    text-align: center;
    margin-top: 30px;
}

.stem-submit-button {
    background: #7603D0;
    color: #fff;
    border: none;
    padding: 16px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(118, 3, 208, 0.3);
    min-width: 200px;
}

.stem-submit-button:hover:not(:disabled) {
    background: #7D297E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 3, 208, 0.4);
}

.stem-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.stem-submit-button .btn-loader {
    display: inline-block;
}

/* Messages */
.stem-form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-size: 15px;
}

.stem-form-messages.success {
    background: #f3e8ff;
    border: 1px solid #e6d7ff;
    color: #7603D0;
}

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

.stem-message {
    margin: 0;
}

.stem-loading {
    text-align: center;
    color: #7603D0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stem-registration-container {
        margin: 20px auto;
        padding: 10px;
    }
    
    .stem-registration-form-wrapper {
        padding: 25px 20px;
    }
    
    .stem-form-title {
        font-size: 24px;
    }
    
    .stem-section-title {
        font-size: 20px;
    }
    
    .stem-payment-options {
        grid-template-columns: 1fr;
    }
    
    .stem-submit-button {
        width: 100%;
        padding: 14px 30px;
    }
}

@media (max-width: 480px) {
    .stem-registration-form-wrapper {
        padding: 20px 15px;
    }
    
    .stem-form-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .stem-form-subsection {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .stem-registration-container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .stem-registration-form-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .stem-form-submit,
    .stem-form-messages {
        display: none;
    }
    
    .stem-form-section {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .stem-payment-options {
        display: block;
    }
    
    .stem-payment-option {
        margin-bottom: 10px;
        page-break-inside: avoid;
    }
}

