:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: rgba(79, 70, 229, 0.08);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-color: #e2e8f0;
    --border-focus: #818cf8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --radius: 16px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-hero {
    text-align: center;
    padding: 4rem 1.5rem 2rem;
}

.page-hero .eyebrow {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    letter-spacing: 0.025em;
}

.page-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 2rem auto 5rem;
    padding: 0 1.5rem;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: start;
    }
}

@media (max-width: 700px) {
    .split {
        padding: 0 0.125rem;
        margin: 0.75rem auto 3rem;
    }

    .contact-card,
    .form-note {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }
}

.contact-card,
.form-note {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.contact-card h2,
.form-note h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.form-copy {
    margin: 0 0 1.75rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.975rem;
    color: var(--text-main);
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    background: #ffffff;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px var(--primary-light);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2064748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25em;
    padding-right: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.95rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(134, 239, 172, 0.35),
        rgba(16, 185, 129, 0.45),
        rgba(5, 150, 105, 0.25)
    );
    opacity: 0;
    transition: opacity 0.35s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #064e3b 0%, #0f766e 45%, #115e59 100%);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(6, 78, 59, 0.28);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(6, 78, 59, 0.36);
}

.btn-secondary {
    background: linear-gradient(135deg, #e6f8ef 0%, #d1f2e3 100%);
    color: #064e3b;
    border: 1px solid #6ee7b7;
    margin-top: 0.5rem;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #c7ebd7 0%, #8ee2b8 100%);
    border-color: #10b981;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.form-note {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-note p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.form-note .item {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}

.form-note .item b {
    display: block;
    color: var(--text-main);
    font-size: 0.975rem;
    margin-bottom: 0.25rem;
}

.alert {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.alert-success {
    background: #eef4ff;
    color: #1a365d;
    border: 1px solid #cbd5e1;
}

.alert-error {
    background: #fff1f2;
    color: #7f1d1d;
    border: 1px solid #fecdd3;
}

.split.blurred {
    filter: blur(8px);
    transition: filter 0.35s ease;
    pointer-events: none;
}

.success-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.94);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
    z-index: 50;
}

.success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-card {
    text-align: center;
    max-width: 480px;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 26px;
    padding: 2rem;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.success-gif {
    width: 160px;
    max-width: 100%;
    display: block;
    margin: 0 auto 1.5rem;
}

.success-copy {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.75;
}

@media (max-width: 820px) {
    .split {
        grid-template-columns: 1fr;
    }
}
