/* ============================================
   IWPG — Contact Page Styles
   ============================================ */

/* ---- Contact Hero ---- */
.contact-hero {
    position: relative;
    padding: 10rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0, 255, 136, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.contact-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.contact-hero-sub {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Contact Section ---- */
.contact-section {
    padding: 5rem 0;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ---- Contact Form ---- */
.contact-heading {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

/* Honeypot — invisible to users */
.hp-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

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

.form-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

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

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.08);
    background: var(--bg-card-hover);
}

.form-input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: var(--accent-red);
}

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

.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-submit {
    width: 100%;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    position: relative;
    transition: all 0.3s;
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-submit.sending {
    color: transparent;
}

.form-submit.sending::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--bg-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form Status */
.form-status {
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-align: center;
    min-height: 1.5rem;
}

.form-status.success {
    color: var(--accent);
}

.form-status.error {
    color: var(--accent-red);
}

/* ---- Sidebar ---- */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.75rem;
    transition: all 0.3s;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.sidebar-card:hover {
    border-color: rgba(0, 255, 136, 0.2);
    transform: translateX(4px);
}

.sidebar-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.sidebar-card h3 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.sidebar-card a {
    color: var(--accent);
    font-size: 0.9rem;
    transition: color 0.3s;
    display: block;
    margin-bottom: 0.25rem;
}

.sidebar-card a:hover {
    color: #33ffaa;
}

.sidebar-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0.25rem;
}

/* ---- Social Icons ---- */
.sidebar-socials {
    padding-top: 1rem;
}

.sidebar-socials h3 {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.3s;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.15);
}

/* Footer social icons */
.footer-social-icons {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.footer-social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.3s;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.footer-social-icons a svg {
    width: 15px;
    height: 15px;
}

.footer-social-icons a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ---- Nav Active ---- */
.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active::after {
    width: 100%;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-hero {
        padding: 7rem 1.25rem 2.5rem;
    }

    .contact-hero-title {
        font-size: 2.5rem;
    }

    .contact-section {
        padding: 3rem 0;
    }

    .contact-container {
        padding: 0 1.25rem;
    }

    .contact-heading {
        font-size: 1.2rem;
    }

    .sidebar-card {
        padding: 1.25rem;
    }

    .social-icons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 6rem 1rem 2rem;
    }

    .contact-hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .contact-hero-sub {
        font-size: 0.95rem;
    }

    .contact-container {
        padding: 0 1rem;
    }

    .form-input {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .form-select {
        padding-right: 2.5rem;
    }

    .form-submit {
        padding: 0.9rem 1.5rem;
    }

    .sidebar-card {
        padding: 1rem;
    }
}
