﻿/* Registration Form Page Styles */

.registration-page {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.registration-container {
    max-width: 600px;
    background: #fff;
    padding: 2rem 1rem;
    margin: 0 auto;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Header */
.registration-header {
    text-align: center;
    margin-bottom: 2rem;
}

.registration-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
}

.registration-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.registration-intro {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Form */
.registration-form {
    padding: 2rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section-title i {
    color: #ff8c42;
    font-size: 1rem;
}

.optional-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    background: #e5e7eb;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: auto;
}

/* Form Groups */
.form-group {
    margin-bottom: 1rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ff8c42;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Form Rows */
.form-row {
    display: flex;
    gap: 1rem;
}

.form-group-lg {
    flex: 2;
}

.form-group-sm {
    flex: 1;
}

.form-group-half {
    flex: 1;
}

.form-group-quarter {
    flex: 0.5;
}

/* Honeypot field - hidden from real users */
.hp-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Validation */
.text-danger {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    display: block;
}

.form-text {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.input-validation-error {
    border-color: #dc2626;
}

.input-validation-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Form Actions */
.form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

.form-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Confirmation Page */
.confirmation-content {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 12px;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.confirmation-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.confirmation-content h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.confirmation-text {
    font-size: 1.0625rem;
    color: #4b5563;
    line-height: 1.6;
    max-width: 450px;
    margin: 0 auto 0.75rem;
}

.confirmation-subtext {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Help Question styling for details page */
.help-question-text {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #ff8c42;
}

/* Responsive */
@media (max-width: 640px) {
    .registration-page {
        padding: 1rem 0.5rem;
    }

    .registration-form {
        padding: 1.5rem 1rem;
    }

    .form-section-optional {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 1.25rem 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group-lg,
    .form-group-sm,
    .form-group-half {
        flex: none;
        width: 100%;
    }

    .registration-header h1 {
        font-size: 1.5rem;
    }

    .confirmation-content {
        padding: 2rem 1.5rem;
    }
}
