/* ═══════════════════════════════════════════════════
   contact.css — Contact page specific styles
   ═══════════════════════════════════════════════════ */

/* ── Header ───────────────────────────────────────── */
.site-header {
    padding-bottom: 2.5rem;
}

.contact-brand-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-top: 1.5rem;
}

.contact-logo {
    cursor: pointer;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    border-bottom: none !important;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.18s;
}
.back-link:hover {
    color: var(--text-primary);
    border-bottom: none !important;
}

/* ── Section head ─────────────────────────────────── */
.contact-main {
    padding: 2.5rem 0 3.5rem;
}

.contact-section-head {
    margin-bottom: 3rem;
}

.contact-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #3B82F6;
    margin-bottom: 1rem;
}

.contact-headline {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-primary);
    white-space: pre-line;
}

/* ── Card ─────────────────────────────────────────── */
.contact-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    overflow: hidden;
}

/* ── Left: info panel ─────────────────────────────── */
.contact-info-panel {
    background: #0F172A;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
}

.contact-intro {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #94A3B8;
    margin-bottom: 2rem;
}

.contact-email-simple {
    font-size: 0.92rem;
    font-weight: 500;
    color: #64748B;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.contact-email-simple a {
    color: #E2E8F0;
    text-decoration: none;
    font-weight: 600;
}

.contact-email-simple a:hover {
    color: #60A5FA;
}

/* ── Language-conditional visibility ─────────────────── */
html[lang="pl"] .lang-en { display: none; }
html[lang="en"] .lang-pl { display: none; }

/* ── Company address block ───────────────────────────── */
.contact-address {
    font-size: 0.82rem;
    color: #64748B;
    line-height: 1.75;
    margin-top: 1.2rem;
}

.contact-address strong {
    color: #94A3B8;
    font-weight: 600;
}

/* ── Phone ───────────────────────────────────────────── */
.contact-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.2rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: #64748B;
}

.contact-phone svg {
    flex-shrink: 0;
    color: #64748B;
}

.contact-phone a {
    color: #E2E8F0;
    text-decoration: none;
    font-weight: 600;
}

.contact-phone a:hover {
    color: #60A5FA;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.contact-detail-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    border-radius: 6px;
}

.contact-detail-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 1px;
}

.contact-detail-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
}

.contact-detail-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #E2E8F0;
    text-decoration: none;
}

a.contact-detail-value:hover {
    color: #60A5FA;
}

.contact-panel-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748B;
}

.contact-available-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    animation: availPulse 2.4s ease-in-out infinite;
}

@keyframes availPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
    50%       { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.06); }
}

/* ── Right: form panel ────────────────────────────── */
.contact-form-panel {
    padding: 3.5rem 3.5rem;
    position: relative;
}

/* double column row */
.form-row-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* single field */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 1.75rem;
}

.form-group label {
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
}

/* inputs / textarea / select shared */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    background: #F8FAFC;
    border: 1px solid #D1D5DB;
    border-radius: 0;
    outline: none;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #3B82F6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #EF4444;
    background: #FFF5F5;
}

.form-group textarea {
    resize: vertical;
    min-height: 148px;
    line-height: 1.65;
}

/* custom select */
.select-wrap {
    position: relative;
}

.select-wrap select {
    padding-right: 2.5rem;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94A3B8;
}

/* validation error text */
.form-error {
    display: none;
    font-size: 0.76rem;
    font-weight: 600;
    color: #EF4444;
    margin-top: -1px;
}

.form-group.has-error .form-error {
    display: block;
}

/* ── Submit button ────────────────────────────────── */
.btn-contact-send {
    width: 100%;
    padding: 1rem 2rem;
    background: #0F172A;
    color: #fff;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.22s, transform 0.12s;
    position: relative;
    overflow: hidden;
}

.btn-contact-send::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
    opacity: 0;
    transition: opacity 0.22s;
}

.btn-contact-send:hover::after {
    opacity: 1;
}

.btn-contact-send > * {
    position: relative;
    z-index: 1;
}

.btn-contact-send:active {
    transform: scale(0.99);
}

.btn-contact-send.sending {
    opacity: 0.6;
    pointer-events: none;
}

/* ── Send error ───────────────────────────────────── */
.form-send-error {
    margin-top: 0.75rem;
    padding: 12px 16px;
    background: #FFF5F5;
    border: 1px solid #FECACA;
    color: #DC2626;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.5;
}

/* ── Success state ────────────────────────────────── */
.contact-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 400px;
    animation: successIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-success.visible {
    display: flex;
}

@keyframes successIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.success-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #F0FDF4;
    border: 2px solid #BBF7D0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16A34A;
    margin-bottom: 1.75rem;
}

.contact-success h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.contact-success p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    max-width: 300px;
    line-height: 1.65;
}

.success-back-link {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 2px;
    transition: color 0.18s, border-color 0.18s;
}

.success-back-link:hover {
    color: #3B82F6;
    border-color: #3B82F6;
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.84rem;
    color: var(--text-secondary);
}

/* ═══ RESPONSIVE ══════════════════════════════════════ */
@media (max-width: 900px) {
    .contact-card {
        grid-template-columns: 1fr;
    }
    .contact-info-panel {
        padding: 2.5rem 2.5rem;
    }
    .contact-details-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
    }
    .contact-detail-row {
        width: 50%;
        padding-right: 1.5rem;
    }
    .contact-detail-row:nth-child(1),
    .contact-detail-row:nth-child(2) {
        border-top: 1px solid rgba(255,255,255,0.07);
    }
}

@media (max-width: 768px) {
    .site-header .container {
        padding: 0 1.5rem;
    }
    .contact-section-head {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 640px) {
    .contact-form-panel {
        padding: 2rem 1.5rem;
    }
    .form-row-double {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-headline {
        font-size: 2rem;
    }
    .contact-section-head {
        margin-bottom: 2rem;
    }
    .contact-details-list {
        flex-direction: column;
    }
    .contact-detail-row {
        width: 100%;
        padding-right: 0;
    }
    .contact-info-panel {
        padding: 2rem 1.5rem;
    }
}
