/* Firman Solutions Ireland — Lead Form Styles
   White card on dark section for maximum readability. */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --ie-primary: #102753;
    --ie-secondary: #ff760b;
    --ie-light: #ffffff;
    --ie-surface: #f8fafc;
    --ie-text: #1e293b;
    --ie-text-muted: #64748b;
    --ie-border: #e2e8f0;
}

/* ── Section Wrapper (dark gradient band) ──────────────────── */
.lead-form-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a1a3a 0%, #102753 40%, #1a3a6a 100%);
    overflow: hidden;
}

.lead-form-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 118, 11, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* ── Two-Column Layout (text + form) ──────────────────────── */
.lead-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.lead-form-content {
    padding-top: 1rem;
}

.lead-form-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ie-light);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.lead-form-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.lead-form-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lead-form-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.lead-form-benefit-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: rgba(255, 118, 11, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 118, 11, 0.3);
}

.lead-form-benefit-icon svg {
    width: 12px;
    height: 12px;
    stroke: var(--ie-secondary);
}

/* ── Form Card (white) ────────────────────────────────────── */
.lead-form-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lead-form-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ie-primary), var(--ie-secondary));
}

.lead-form-box h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ie-text);
    margin-bottom: 1.5rem;
}

/* ── Single-Column Form Layout ────────────────────────────── */
.lead-form-section .form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ie-light);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.form-header p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ── Form Grid ────────────────────────────────────────────── */
.ie-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group.full,
.form-group.full-width {
    grid-column: span 2;
}

/* ── Labels ───────────────────────────────────────────────── */
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ie-text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

/* ── Inputs / Selects / Textareas ─────────────────────────── */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--ie-surface);
    border: 1px solid var(--ie-border);
    border-radius: 10px;
    color: var(--ie-text);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--ie-text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--ie-secondary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 118, 11, 0.12);
}

/* ── Select ───────────────────────────────────────────────── */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.form-select option {
    background: #ffffff;
    color: var(--ie-text);
}

/* ── Textarea ─────────────────────────────────────────────── */
.form-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

/* ── File Input ───────────────────────────────────────────── */
.form-input[type="file"] {
    background: var(--ie-surface);
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-style: dashed;
    border-width: 2px;
}

.form-input[type="file"]::file-selector-button {
    background: var(--ie-primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.form-input[type="file"]::file-selector-button:hover {
    background: #0c1d40;
}

/* ── Checkbox ─────────────────────────────────────────────── */
.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--ie-secondary);
    cursor: pointer;
}

.form-checkbox-label {
    font-size: 0.82rem;
    color: var(--ie-text-muted);
    line-height: 1.5;
    cursor: pointer;
}

/* ── Submit Button ────────────────────────────────────────── */
.lead-form-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--ie-secondary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.lead-form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.lead-form-submit:hover {
    background: #e86a0a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 118, 11, 0.4);
}

.lead-form-submit:hover::before {
    left: 100%;
}

.lead-form-submit:active {
    transform: translateY(0);
}

.lead-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Success Message ──────────────────────────────────────── */
.lead-form-success {
    display: none;
    text-align: center;
    padding: 2.5rem 1rem;
}

.lead-form-success.visible {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.lead-form-success .fa-check-circle,
.lead-form-success i {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 1rem;
    display: block;
}

.lead-form-success h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ie-text);
    margin-bottom: 0.75rem;
}

.lead-form-success p {
    color: var(--ie-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.lead-form-success a {
    color: var(--ie-secondary);
    text-decoration: none;
    font-weight: 600;
}

.lead-form-success a:hover {
    text-decoration: underline;
}

/* ── Privacy Note ─────────────────────────────────────────── */
.lead-form-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--ie-text-muted);
    margin-top: 1rem;
    line-height: 1.5;
}

.lead-form-note i {
    margin-right: 0.35rem;
    font-size: 0.72rem;
}

/* ── Trust Badges ─────────────────────────────────────────── */
.trust-badges {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.trust-badge i {
    color: var(--ie-secondary);
    font-size: 0.85rem;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .lead-form-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .lead-form-content {
        text-align: center;
    }

    .lead-form-benefits {
        max-width: 500px;
        margin: 0 auto;
    }

    .lead-form-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .lead-form-section {
        padding: 3rem 0;
    }

    .lead-form-box {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .ie-form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full,
    .form-group.full-width {
        grid-column: span 1;
    }

    .lead-form-title {
        font-size: 1.75rem;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }

    .lead-form-submit {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .trust-badges {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .lead-form-box {
        padding: 1.5rem 1rem;
    }

    .lead-form-title {
        font-size: 1.5rem;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .lead-form-benefit {
        font-size: 0.85rem;
    }
}
