/* ===== FORM PAGE STYLES ===== */

.form-hero {
    padding: 130px 0 40px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
    text-align: center;
}

.form-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.form-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* ===== FORM SECTION ===== */
.form-section {
    padding: 48px 0 80px;
    background: #f8faf9;
}

.form-section .container {
    max-width: 800px;
}

#swapprep-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8efe8;
}

/* Group Headers */
.form-group-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #16a34a;
    margin-top: 32px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d1fae5;
}

.form-group-header:first-child {
    margin-top: 0;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

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

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

/* Labels */
label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.required {
    color: #ef4444;
}

/* Inputs */
input[type="text"],
input[type="email"],
select,
textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafafa;
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
    background: white;
}

input::placeholder,
textarea::placeholder {
    color: #aaa;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

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

/* Field Hints & Errors */
.field-hint {
    font-size: 0.8rem;
    color: #999;
    margin-top: 4px;
}

.field-error {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 4px;
    display: none;
}

.field-error.show {
    display: block;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 400;
    color: #555;
    cursor: pointer;
    padding: 6px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
}

.checkbox-label:hover {
    border-color: #16a34a;
    background: #f0fdf4;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #16a34a;
    width: 16px;
    height: 16px;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    background: #fafafa;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #16a34a;
    background: #f0fdf4;
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.file-upload-area p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.upload-link {
    color: #16a34a;
    font-weight: 600;
    text-decoration: underline;
}

.upload-hint {
    font-size: 0.8rem !important;
    color: #999 !important;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Photo Preview */
.photo-preview {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.form-submit .btn {
    min-width: 220px;
}

.form-disclaimer {
    font-size: 0.8rem;
    color: #999;
    margin-top: 12px;
}

/* Loading State */
.hidden {
    display: none !important;
}

#submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8efe8;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.success-message h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #16a34a;
}

.success-message p {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.success-message a {
    color: #16a34a;
    font-weight: 600;
}

.success-message .btn {
    margin: 24px 8px 0;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    #swapprep-form {
        padding: 24px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-row.three-col {
        grid-template-columns: 1fr;
    }

    .form-hero h1 {
        font-size: 2rem;
    }

    .success-message {
        padding: 48px 24px;
    }

    .success-message .btn {
        display: block;
        margin: 12px auto 0;
        max-width: 250px;
    }
}
