/* Oevaru 2026 Registration Form Styles */

.registration-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Payment and Terms Section */
.payment-terms-section {
    background: rgba(144, 255, 211, 0.1);
    border-color: #90ffd3;
}

.payment-cards-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(144, 255, 211, 0.2);
}

.accepted-cards {
    flex: 1;
    min-width: 200px;
}

.accepted-cards p {
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.card-brands-logo {
    max-width: 350px;
    height: auto;
    display: block;
}

.merchant-info {
    flex: 1;
    min-width: 200px;
    text-align: right;
}

.merchant-info p {
    margin: 0.25rem 0;
    color: #fff;
}

.security-note {
    font-size: 0.85rem;
    color: #aaa;
}

/* Form Sections */
.form-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(144, 255, 211, 0.2);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-section h2 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #90ffd3;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(144, 255, 211, 0.3);
    padding-bottom: 0.5rem;
}

.section-description {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Form Fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label,
.form-section label:not(.variation-option label):not(.workshop-option label):not(.addon-option label) {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(144, 255, 211, 0.3);
    color: #fff;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Lora', serif;
    transition: border-color 0.3s ease;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field select:focus {
    outline: none;
    border-color: #90ffd3;
    box-shadow: 0 0 0 2px rgba(144, 255, 211, 0.1);
}

.form-field select option {
    background: #000;
    color: #fff;
}

.required {
    color: #ff6b6b;
}

/* Staff ID Upload */
.staff-id-upload {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(144, 255, 211, 0.2);
}

.staff-id-upload input[type="file"] {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(144, 255, 211, 0.3);
    color: #fff;
    padding: 0.75rem;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
}

.staff-id-upload small {
    display: block;
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Product Options */
.product-variations,
.workshop-option,
.addon-option {
    margin-bottom: 1rem;
}

.product-description,
.workshop-description,
.addon-description {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.variation-option,
.workshop-option,
.addon-option {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(144, 255, 211, 0.2);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.variation-option:hover,
.workshop-option:hover,
.addon-option:hover {
    border-color: rgba(144, 255, 211, 0.5);
    background: rgba(144, 255, 211, 0.05);
}

.variation-option label,
.workshop-option label,
.addon-option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.variation-option input[type="radio"],
.workshop-option input[type="checkbox"],
.addon-option input[type="checkbox"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #90ffd3;
}

.variation-name,
.workshop-name,
.addon-name {
    flex: 1;
    color: #fff;
    font-size: 1rem;
}

.variation-price,
.workshop-price,
.addon-price {
    color: #90ffd3;
    font-weight: 700;
    font-size: 1.1rem;
    margin-left: 1rem;
}

.workshop-details,
.addon-details {
    flex: 1;
}

.workshop-description,
.addon-description {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    padding-left: 2rem;
}

/* Selected state */
.variation-option:has(input[type="radio"]:checked),
.workshop-option:has(input[type="checkbox"]:checked),
.addon-option:has(input[type="checkbox"]:checked) {
    border-color: #90ffd3;
    background: rgba(144, 255, 211, 0.1);
}

/* Total Section */
.total-section {
    background: rgba(144, 255, 211, 0.1);
    border-color: #90ffd3;
}

.total-breakdown {
    font-size: 1.1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(144, 255, 211, 0.2);
}

.total-row:last-child {
    border-bottom: none;
}

.total-row.grand-total {
    font-size: 1.4rem;
    font-weight: 700;
    color: #90ffd3;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #90ffd3;
}

/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    background: #90ffd3;
    color: #000;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1rem 3rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: #7ee6bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(144, 255, 211, 0.3);
}

.btn-submit:disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.form-messages {
    margin-top: 1.5rem;
}

.error-message,
.success-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.error-message {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    color: #ffaaaa;
}

.success-message {
    background: rgba(144, 255, 211, 0.1);
    border: 1px solid #90ffd3;
    color: #90ffd3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .variation-option label,
    .workshop-option label,
    .addon-option label {
        flex-direction: column;
        align-items: flex-start;
    }

    .variation-price,
    .workshop-price,
    .addon-price {
        margin-left: 2rem;
        margin-top: 0.5rem;
    }

    .btn-submit {
        width: 100%;
        padding: 1rem;
    }

    .total-row {
        font-size: 1rem;
    }

    .total-row.grand-total {
        font-size: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .registration-container {
        padding: 0 0.5rem;
    }

    .form-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .form-section h2 {
        font-size: 1.2rem;
    }

    .variation-option,
    .workshop-option,
    .addon-option {
        padding: 0.75rem;
    }
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Terms Acceptance */
.terms-acceptance {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    cursor: pointer;
    accent-color: #90ffd3;
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.checkbox-label a {
    color: #90ffd3;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #7ee6bd;
}

/* Form Actions within Payment Section */
.payment-terms-section .form-actions {
    text-align: left;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(144, 255, 211, 0.2);
}

.payment-terms-section .form-messages {
    margin-top: 1rem;
}

/* Contact Footer */
.contact-footer {
    text-align: left;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(144, 255, 211, 0.2);
    font-size: 0.9rem;
    color: #aaa;
}

.contact-footer p {
    margin: 0;
}

.contact-footer a {
    color: #90ffd3;
    text-decoration: underline;
}

/* Responsive for payment section */
@media (max-width: 768px) {
    .payment-cards-row {
        flex-direction: column;
        text-align: center;
    }

    .merchant-info {
        text-align: center;
        margin-top: 1rem;
    }

    .card-brands-logo {
        margin: 0 auto;
    }
}
