/* Form page – layout, sections, upload zones, submit */
.form-wrapper {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-header h1 {
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.form-header p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
}

.form-card {
    background: linear-gradient(160deg, #f0f5ff 0%, #e8f0fb 60%, #f5f8ff 100%);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-primary-light) 50%, var(--brand-primary) 100%);
}

.form-section {
    margin-bottom: 28px;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 188, 212, 0.25);
}

.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-card label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2d3e52;
    margin-bottom: 6px;
}

.form-card label .optional {
    font-weight: 500;
    color: #7a8fa8;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="url"],
.form-card textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-primary);
    background: #ffffff;
    border: 1px solid rgba(0, 188, 212, 0.25);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
    color: #7a8fa8;
}

.form-card input:focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

.form-group.is-invalid input[type="text"],
.form-group.is-invalid input[type="email"],
.form-group.is-invalid input[type="tel"],
.form-group.is-invalid input[type="url"],
.form-group.is-invalid textarea {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.form-group.is-invalid .upload-zone {
    border-color: var(--accent-red);
    background: rgba(244, 67, 54, 0.06);
}

.field-error {
    display: block;
    font-size: 0.8125rem;
    color: var(--accent-red);
    margin-top: 6px;
    font-weight: 500;
}

.form-card textarea {
    min-height: 80px;
    resize: vertical;
}

.upload-zone {
    border: 2px dashed rgba(0, 188, 212, 0.4);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-zone:hover {
    border-color: var(--brand-primary);
    background: rgba(255, 255, 255, 0.95);
}

.upload-zone.has-file {
    border-style: solid;
    border-color: var(--brand-primary);
    background: rgba(0, 188, 212, 0.06);
}

.upload-zone input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.upload-zone-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone-icon svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.upload-zone span {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.upload-zone small {
    font-size: 0.75rem;
    color: #7a8fa8;
}

.upload-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 12px;
    border: 3px solid var(--brand-primary);
    display: none;
}

.upload-zone.has-file .upload-preview {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.upload-zone.has-file .upload-zone-icon,
.upload-zone.has-file .upload-zone span:first-of-type {
    display: none;
}

.upload-preview.logo-preview {
    border-radius: 12px;
    max-height: 80px;
    width: auto;
}

.submit-wrap {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 188, 212, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 188, 212, 0.35);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.45);
}

.btn-submit:active {
    transform: translateY(0);
}

@media (min-width: 600px) {
    .form-card {
        padding: 36px 32px;
    }

    .form-section-title {
        margin-bottom: 20px;
    }

    .form-row-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .social-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .form-header h1 {
        font-size: 2rem;
    }
}
