/* ===========================
   GLOBAL RESET & BASE
=========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #111;
    color: #eee;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* .content padding-top is set in Header-footer.css (100px) */
.content {
    flex: 1;
}

/* ===========================
   ACTIVE NAV LINK
=========================== */
.nav-active {
    color: #c9a14c !important;
    border-bottom: 2px solid #c9a14c;
    padding-bottom: 2px;
}

/* ===========================
   HERO SECTION
=========================== */
.contact-hero {
    position: relative;
    width: 100%;
    height: 280px;
    background-color: #0a0a0a;
    background-image: url('/Images/tattoobanner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.contact-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #c9a14c;
    margin: 0 0 12px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-hero-content p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #ccc;
    margin: 0;
    max-width: 560px;
}

/* ===========================
   CONTACT SECTION (INFO + FORM)
=========================== */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
}

/* ===========================
   LEFT: CONTACT INFO PANEL
=========================== */
.contact-info {
    padding: 40px 50px 40px 0;
    border-right: 1px solid #2a2a2a;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #c9a14c;
    margin: 0 0 30px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
}

/* Individual info block (icon + text) */
.info-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.info-icon {
    font-size: 1.4rem;
    line-height: 1;
    min-width: 32px;
    text-align: center;
    padding-top: 2px;
    filter: sepia(1) saturate(3) hue-rotate(5deg);
}

.info-text h3 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #c9a14c;
    margin: 0 0 4px 0;
}

.info-text p {
    font-size: 0.95rem;
    color: #ccc;
    margin: 0;
    line-height: 1.7;
}

.info-text a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.info-text a:hover {
    color: #c9a14c;
}

/* Opening hours table */
.hours-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9rem;
}

.hours-table td {
    padding: 5px 12px 5px 0;
    color: #ccc;
    vertical-align: top;
}

.hours-table td:first-child {
    font-weight: 500;
    color: #eee;
    min-width: 110px;
}

.hours-table tr.closed-row td {
    color: #888;
}

/* Social icons in info panel */
.contact-social-icons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.contact-social-icons a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.contact-social-icons a:hover {
    color: #c9a14c;
}

.contact-social-icons a img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.2s;
}

.contact-social-icons a:hover img {
    transform: scale(1.12);
}

/* ===========================
   RIGHT: CONTACT FORM PANEL
=========================== */
.contact-form-wrapper {
    padding: 40px 0 40px 50px;
}

.form-intro {
    font-size: 0.9rem;
    color: #999;
    margin: -20px 0 28px 0;
}

/* Form layout */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ccc;
    letter-spacing: 0.3px;
}

.required {
    color: #c9a14c;
}

/* Inputs, selects, textarea */
.contact-form input,
.contact-form select,
.contact-form textarea {
    background-color: #1c1c1c;
    border: 1px solid #333;
    border-radius: 6px;
    color: #eee;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.9rem;
    padding: 11px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #555;
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    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 fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Unselected placeholder option */
.contact-form select option[value=""] {
    color: #555;
}

.contact-form select option {
    background-color: #1c1c1c;
    color: #eee;
}

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

/* Focus state */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #c9a14c;
    box-shadow: 0 0 0 3px rgba(201, 161, 76, 0.15);
}

/* Invalid / error state */
.contact-form input.input-error,
.contact-form select.input-error,
.contact-form textarea.input-error {
    border-color: #e05252;
    box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.12);
}

.field-error {
    font-size: 0.78rem;
    color: #e05252;
    min-height: 16px;
    display: block;
}

/* Submit button */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #c9a14c;
    color: #111;
    border: none;
    border-radius: 6px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 13px 32px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
    align-self: flex-start;
    letter-spacing: 0.5px;
}

.submit-btn:hover:not(:disabled) {
    background-color: #a8832e;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Loading spinner inside button */
.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(17, 17, 17, 0.3);
    border-top-color: #111;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner.visible {
    display: inline-block;
}

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

/* Success / error banners */
.form-banner {
    border-radius: 6px;
    font-size: 0.9rem;
    padding: 14px 18px;
    margin-top: 4px;
}

.form-success {
    background-color: rgba(72, 187, 120, 0.12);
    border: 1px solid rgba(72, 187, 120, 0.4);
    color: #68d391;
}

.form-error {
    background-color: rgba(224, 82, 82, 0.1);
    border: 1px solid rgba(224, 82, 82, 0.35);
    color: #fc8181;
}

/* ===========================
   MAP SECTION
=========================== */
.map-section {
    background-color: #0d0d0d;
    padding: 60px 40px;
    border-top: 1px solid #1e1e1e;
}

.map-header {
    max-width: 1200px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.map-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #c9a14c;
    margin: 0 0 8px 0;
}

.map-header p {
    font-size: 0.95rem;
    color: #999;
    margin: 0;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

/* ===========================
   RESPONSIVE — TABLET (≤ 900px)
=========================== */
@media (max-width: 900px) {
    .contact-section {
        grid-template-columns: 1fr;
        padding: 0 30px;
        margin: 40px auto;
    }

    .contact-info {
        padding: 30px 0;
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
    }

    .contact-form-wrapper {
        padding: 30px 0;
    }

    .map-section {
        padding: 40px 30px;
    }
}

/* ===========================
   RESPONSIVE — MOBILE (≤ 600px)
=========================== */
@media (max-width: 600px) {
    .contact-hero {
        height: 220px;
    }

    .contact-section {
        padding: 0 20px;
        margin: 30px auto;
    }

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

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .map-section {
        padding: 30px 20px;
    }

    .map-container iframe {
        height: 300px;
    }

    .contact-info h2,
    .contact-form-wrapper h2 {
        font-size: 1.3rem;
    }
}
