/* Heritage Modernism Contact & Inquiry Forms */

:root {
    --hm-accent: #8E735B;
    --hm-bg: #F9F8F6;
    --hm-text: #1A1A1A;
    --hm-muted: #6B6A68;
    --hm-border: #E5E4E2;
}

/* Modal Overlay */
.hm-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hm-modal-content {
    background-color: var(--hm-bg);
    margin: 5% auto;
    padding: 0;
    border: 0;
    width: 90%;
    max-width: 1100px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    overflow: hidden;
}

.hm-modal-close {
    position: absolute;
    right: 25px;
    top: 20px;
    color: var(--hm-text);
    font-size: 35px;
    font-weight: 200;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.hm-modal-close:hover {
    color: var(--hm-accent);
}

/* Modal Grid */
.hm-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    min-height: 600px;
}

.hm-modal-product-info {
    background: #EAE8E3;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--hm-border);
}

.hm-modal-img-wrap {
    width: 100%;
    margin-bottom: 2rem;
}

.hm-modal-img-wrap img {
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

.hm-modal-subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: var(--hm-accent);
    margin-bottom: 0.5rem;
}

#hm-modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--hm-text);
}

.hm-modal-pid {
    font-size: 0.85rem;
    color: var(--hm-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form Side */
.hm-modal-form-side {
    padding: 4rem;
    background: #fff;
}

.hm-modal-heading {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--hm-text);
}

.hm-modal-intro {
    font-size: 1rem;
    color: var(--hm-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Form Styling */
.hm-form-group {
    margin-bottom: 1.5rem;
}

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

.hm-form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
    color: var(--hm-muted);
    font-weight: 600;
}

.hm-form-group input[type="text"],
.hm-form-group input[type="email"],
.hm-form-group input[type="tel"],
.hm-form-group input[type="url"],
.hm-form-group textarea {
    width: 100% !important;
    padding: 0.8rem 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--hm-border) !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 1rem;
    color: var(--hm-text);
    transition: border-color 0.3s;
}

.hm-form-group input[type="text"]:focus,
.hm-form-group input[type="email"]:focus,
.hm-form-group input[type="tel"]:focus,
.hm-form-group textarea:focus {
    outline: none;
    border-color: var(--hm-accent);
}

.hm-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 2rem;
}

.hm-checkbox-group input[type="checkbox"] {
    margin-top: 4px;
}

.hm-checkbox-group label {
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--hm-muted);
    line-height: 1.5;
    font-weight: 400;
}

.hm-checkbox-group a {
    color: var(--hm-accent);
    text-decoration: none;
}

/* Submit Button */
.hm-submit-btn {
    margin-top: 2rem;
    background: var(--hm-text);
    color: #fff;
    border: none;
    padding: 1.2rem 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.hm-submit-btn:hover {
    background: var(--hm-accent);
}

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

/* Response Message */
.hm-form-response {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    padding: 1rem;
    border-radius: 2px;
    display: none;
}

.hm-form-response.success {
    display: block;
    background: #f4f8f4;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.hm-form-response.error {
    display: block;
    background: #fdf4f4;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* General Contact Container (Shortcode) */
.hm-contact-container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 3rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hm-modal-grid {
        grid-template-columns: 1fr;
    }
    
    .hm-modal-product-info {
        padding: 2rem;
        text-align: center;
    }
    
    .hm-modal-form-side {
        padding: 2rem;
    }
    
    .hm-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .hm-modal-heading {
        font-size: 1.8rem;
    }
}
