/* ================================================================
   INTERLIK SOLUTIONS — CONTACT PAGE STYLES
   contact.css
================================================================ */

/* ── RESPONSE BADGE ── */
.response-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 200, 160, 0.08);
    border: 1px solid rgba(0, 200, 160, 0.2);
    border-radius: 100px;
    padding: 0.4rem 1rem 0.4rem 0.6rem;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: 1.5rem;
}

.response-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* ── MAIN CONTACT SECTION ── */
#contact-main {
    padding: 5rem 5% 7rem;
    background: var(--surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Contact Info */
.contact-info {
    position: sticky;
    top: 110px;
}

.contact-info-header {
    margin-bottom: 2.5rem;
}

.contact-info-header p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.75;
    font-weight: 300;
    margin-top: 0.8rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.25s, transform 0.25s;
}

.contact-detail-item:hover {
    border-color: rgba(0, 200, 160, 0.25);
    transform: translateX(4px);
}

.detail-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(0, 200, 160, 0.1);
}

.contact-detail-item:nth-child(2) .detail-icon {
    background: rgba(59, 130, 246, 0.1);
}

.contact-detail-item:nth-child(3) .detail-icon {
    background: rgba(168, 85, 247, 0.1);
}

.detail-text .label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 0.15rem;
}

.detail-text .value {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 400;
}

.hours-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.hours-card-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hours-card-title::before {
    content: '';
    width: 14px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row .day {
    color: var(--muted);
    font-weight: 400;
}

.hours-row .time {
    color: var(--text);
    font-weight: 500;
}

.hours-row .closed {
    color: var(--muted);
    font-weight: 400;
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.social-link:hover {
    border-color: rgba(0, 200, 160, 0.3);
    background: rgba(0, 200, 160, 0.08);
    transform: translateY(-3px);
}

/* ── FORM ── */
.contact-form-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.8rem;
    position: relative;
    overflow: hidden;
}

.contact-form-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2), transparent);
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}

.form-header p {
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 300;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.2rem;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

label .required {
    color: var(--accent);
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(122, 133, 153, 0.5);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(0, 200, 160, 0.5);
    background: rgba(0, 200, 160, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 200, 160, 0.08);
}

input.error,
select.error,
textarea.error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.04);
}

.field-error {
    font-size: 0.73rem;
    color: #ef4444;
    display: none;
    margin-top: -0.2rem;
}

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

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8599' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

select option {
    background: var(--card);
    color: var(--text);
}

textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.form-meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}

.checkbox-item:hover {
    border-color: rgba(0, 200, 160, 0.2);
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    accent-color: var(--accent);
}

.checkbox-item span {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 400;
}

.checkbox-item:has(input:checked) {
    border-color: rgba(0, 200, 160, 0.3);
    background: rgba(0, 200, 160, 0.06);
}

.checkbox-item:has(input:checked) span {
    color: var(--text);
}

.submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

.submit-note {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--accent);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.9rem 2.2rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 0 30px rgba(0, 200, 160, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 40px rgba(0, 200, 160, 0.45);
}

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

.btn-submit .btn-arrow {
    transition: transform 0.2s;
}

.btn-submit:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-submit.loading {
    opacity: 0.75;
    pointer-events: none;
}

.btn-submit .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(10, 13, 20, 0.3);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-submit.loading .spinner {
    display: block;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-arrow {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success state */
.form-success {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
}

.form-success.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 200, 160, 0.12);
    border: 1px solid rgba(0, 200, 160, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.form-success h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.form-success p {
    color: var(--muted);
    font-size: 0.9rem;
    max-width: 340px;
    line-height: 1.7;
    font-weight: 300;
}

.form-success .next-steps {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    width: 100%;
    text-align: left;
    margin-top: 0.5rem;
}

.form-success .next-steps h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.next-step-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.83rem;
    color: var(--muted);
    padding: 0.4rem 0;
}

.next-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 200, 160, 0.1);
    border: 1px solid rgba(0, 200, 160, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

/* ── FAQ ── */
#faq {
    padding: 5rem 5%;
    border-top: 1px solid var(--border);
}

.faq-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
    margin-bottom: 3rem;
}

.faq-header p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 300;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.faq-item {
    background: var(--card);
    padding: 1.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-item:hover {
    background: rgba(0, 200, 160, 0.03);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.faq-question h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.35;
}

.faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, transform 0.3s;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1;
}

.faq-item.open .faq-toggle {
    background: rgba(0, 200, 160, 0.1);
    border-color: rgba(0, 200, 160, 0.3);
    color: var(--accent);
    transform: rotate(45deg);
}

.faq-answer {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.35s ease;
    opacity: 0;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 0.9rem;
    opacity: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        position: static;
    }

    .faq-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {

    .form-row,
    .form-meta-row {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-submit {
        justify-content: center;
    }
}