/**
 * The Honer Contact Widget Styles
 *
 * @package HonerJewellery
 *
 * All styles are scoped under .hjw-contact to prevent conflicts.
 */

/* ============================================================
   RESET & BASE
   ============================================================ */

.hjw-contact {
    font-family: inherit;
    color: #2c2c2c;
}

.hjw-contact *,
.hjw-contact *::before,
.hjw-contact *::after {
    box-sizing: border-box;
}

/* ============================================================
   CONTAINER
   ============================================================ */

.hjw-contact .hjw-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.hjw-contact .hjw-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.hjw-contact .hjw-section-alt {
    padding: 60px 0;
    background-color: #f8f6f3;
}

/* ============================================================
   EYEBROW
   ============================================================ */

.hjw-contact .hjw-eyebrow {
    display: inline-block;
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c9a96e;
    margin-bottom: 12px;
}

/* ============================================================
   HERO
   ============================================================ */

.hjw-contact .hjw-hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hjw-contact .hjw-hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hjw-contact .hjw-hero-heading {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 44px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #1a1a2e;
    margin: 0 0 16px;
}

.hjw-contact .hjw-hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: #4a4a4a;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   FORM
   ============================================================ */

.hjw-contact .hjw-form-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

.hjw-contact .hjw-form {
    padding: 40px 48px;
    background: #ffffff;
    border: 1px solid #e8e4dc;
    border-radius: 4px;
}

.hjw-contact .hjw-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hjw-contact .hjw-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.hjw-contact .hjw-form-row .hjw-form-group:last-child {
    margin-bottom: 0;
}

.hjw-contact .hjw-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.hjw-contact .hjw-required {
    color: #d9534f;
    margin-left: 2px;
}

.hjw-contact .hjw-form-control {
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a2e;
    background: #fcfaf8;
    border: 1px solid #e8e4dc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.hjw-contact .hjw-form-control:focus {
    border-color: #c9a96e;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
    background: #ffffff;
}

.hjw-contact .hjw-form-control::placeholder {
    color: #b0a8a0;
}

.hjw-contact .hjw-form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hjw-contact textarea.hjw-form-control {
    resize: vertical;
    min-height: 80px;
}

.hjw-contact select.hjw-form-control {
    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 d='M1 1l5 5 5-5' stroke='%231a1a2e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* ============================================================
   FORM - ERRORS
   ============================================================ */

.hjw-contact .hjw-form-group.has-error .hjw-form-control {
    border-color: #d9534f;
}

.hjw-contact .hjw-form-group.has-error .hjw-form-control:focus {
    box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.15);
}

.hjw-contact .hjw-form-error {
    font-size: 12px;
    color: #d9534f;
    margin-top: 4px;
    display: none;
}

.hjw-contact .hjw-form-group.has-error .hjw-form-error {
    display: block;
}

/* ============================================================
   FORM - SUBMIT
   ============================================================ */

.hjw-contact .hjw-form-submit {
    margin-top: 8px;
    text-align: center;
}

.hjw-contact #hjw-form-messages {
    margin-bottom: 16px;
}

.hjw-contact .hjw-form-success {
    color: #5cb85c;
    font-size: 16px;
    padding: 14px 20px;
    background: #f0faf0;
    border: 1px solid #5cb85c;
    border-radius: 4px;
    text-align: center;
}

.hjw-contact .hjw-form-error-message {
    color: #d9534f;
    font-size: 16px;
    padding: 14px 20px;
    background: #fdf0ef;
    border: 1px solid #d9534f;
    border-radius: 4px;
    text-align: center;
}

.hjw-contact .hjw-form-error-message ul {
    margin: 4px 0 0 20px;
    text-align: left;
}

.hjw-contact .hjw-form-error-message li {
    font-size: 14px;
}

.hjw-contact #hjw-submit {
    min-width: 200px;
}

.hjw-contact #hjw-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.hjw-contact .hjw-btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hjw-contact .hjw-btn-primary {
    background-color: #c9a96e;
    color: #ffffff;
    border-color: #c9a96e;
}

.hjw-contact .hjw-btn-primary:hover {
    background-color: #b8955a;
    border-color: #b8955a;
    color: #ffffff;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet */
@media (max-width: 992px) {
    .hjw-contact .hjw-hero-heading {
        font-size: 36px;
    }

    .hjw-contact .hjw-form {
        padding: 32px 28px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hjw-contact .hjw-section {
        padding: 40px 0;
    }

    .hjw-contact .hjw-section-alt {
        padding: 40px 0;
    }

    .hjw-contact .hjw-hero {
        padding: 40px 0 32px;
    }

    .hjw-contact .hjw-hero-heading {
        font-size: 28px;
    }

    .hjw-contact .hjw-hero-subtitle {
        font-size: 16px;
    }

    .hjw-contact .hjw-form {
        padding: 24px 16px;
    }

    .hjw-contact .hjw-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hjw-contact .hjw-form-group {
        margin-bottom: 16px;
    }

    .hjw-contact .hjw-form-row .hjw-form-group:last-child {
        margin-bottom: 0;
    }

    .hjw-contact .hjw-btn {
        padding: 12px 28px;
        font-size: 12px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .hjw-contact #hjw-submit {
        min-width: 100%;
        max-width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hjw-contact .hjw-hero-heading {
        font-size: 24px;
    }

    .hjw-contact .hjw-form {
        padding: 20px 12px;
    }

    .hjw-contact .hjw-form-control {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* ============================================================
   FOCUS STATES (Accessibility)
   ============================================================ */

.hjw-contact .hjw-form-control:focus-visible {
    outline: 2px solid #c9a96e;
    outline-offset: 0;
}

.hjw-contact .hjw-btn:focus-visible {
    outline: 2px solid #c9a96e;
    outline-offset: 2px;
}

/* ============================================================
   SUCCESS STATE (Elementor Preview)
   ============================================================ */

.hjw-contact .hjw-form-success .hjw-enquiry-number {
    font-weight: 600;
    color: #1a1a2e;
}