/* contact.css - Improved: Card border, better inputs, attractive visuals – with CSS variables */

.contact-section {
    position: relative;
    padding: 50px 2% 40px;
    background: var(--bg-secondary, #f9f9f9);
    /* light background for contrast */
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.contact-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-heading {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-heading, #000);
}

.contact-subheading {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-muted, #555);
    margin-bottom: 4rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Main Form Card – Attractive border & shadow */
.contact-form-card {
    background: var(--card-bg, #ffffff);
    border-radius: 24px;
    padding: 2rem 2rem;
    box-shadow: var(--shadow-card, 0 20px 60px rgba(0, 0, 0, 0.08)),
        0 0 0 1px var(--border-light, rgba(0, 0, 0, 0.03));
    border: 2px solid var(--border-accent, rgb(177, 175, 175));
    max-width: 680px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover, 0 30px 80px rgba(0, 0, 0, 0.12));
}

/* Form layout */
.contact-form {
    display: grid;
    gap: 2rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-secondary, #222);
    font-size: 1.1rem;
}

/* Input & Textarea – Visible border + focus glow */
.form-group input,
.form-group textarea {
    padding: 1.1rem 1.5rem;
    border: 3px solid var(--border-input, #2fa7ac);
    border-radius: 14px;
    font-size: 1.05rem;
    background: var(--input-bg, #fdfdfd);
    transition: all 0.3s ease;
    color: var(--text-primary, #333);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--border-input-hover, #a0a0a0);
    box-shadow: var(--shadow-input-hover, 0 4px 12px rgba(0, 0, 0, 0.06));
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent, #1a73e8);
    box-shadow: 0 0 0 4px var(--glow-focus, rgba(26, 115, 232, 0.15));
    background: var(--input-bg-focus, #fff);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-placeholder, #aaa);
    opacity: 1;
}

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

/* Submit Button – Improved hover */
.submit-btn {
    position: relative;
    padding: 1.2rem 0;
    background: var(--btn-primary-bg, #000);
    color: var(--btn-primary-text, white);
    border: none;
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 0;
    box-shadow: var(--shadow-btn, 0 6px 20px rgba(0, 0, 0, 0.15));
}

.submit-btn:hover {
    background: var(--btn-primary-hover, #111);
    transform: translateY(-4px);
    box-shadow: var(--shadow-btn-hover, 0 12px 32px rgba(0, 0, 0, 0.25));
}

/* Message feedback */
.form-message {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    text-align: center;
    min-height: 1.3em;
    color: var(--text-muted, #555);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-section {
        padding: 120px 5% 100px;
    }

    .contact-heading {
        font-size: clamp(2.4rem, 8vw, 3.8rem);
    }

    .contact-form-card {
        padding: 2.5rem 2rem;
        border-radius: 20px;
    }
}

@media (max-width: 576px) {
    .contact-form-card {
        padding: 2rem 1.5rem;
    }

    .submit-btn {
        max-width: 100%;
    }
}

/* Extra specificity for input border (as in your original) */
.contact-form .form-group input {
    border: 3px solid var(--border-input, #2fa7ac);
}