/* ========================================
   Contact Page - Aura Realty
   Mobile-first, Responsive
   Design System: #523829 primary, gold gradients
======================================== */

/* ========================================
   HERO SECTION
======================================== */
.contact-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #523829;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.contact-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(82, 56, 41, 0.3) 0%, rgba(82, 56, 41, 0.85) 100%);
}

.contact-hero .container {
    position: relative;
    z-index: 3;
}

.contact-hero-content {
    padding: 100px 0 40px;
}

.contact-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-breadcrumb a:hover {
    color: #ecd69f;
}

.contact-breadcrumb .current {
    color: #ecd69f;
}

.contact-hero-title {
    font-family: var(--title-font, 'Servetica', serif);
    font-size: clamp(2.3rem, 2.0846rem + 1.0769vw, 3rem);
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.contact-hero-title span {
    background: linear-gradient(82deg, #ecd69f 0%, #c6803b 50%, #653e2c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero-subtitle {
    margin-top: 12px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    line-height: 1.6;
}

/* ========================================
   CONTACT INFO CARDS
======================================== */
.contact-info-section {
    padding: 50px 0 0;
    background: #f8f6f3;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-info-card {
    background: #ffffff;
    border: 1px solid #e8ddd2;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(196, 149, 106, 0.12);
    border-color: #c4956a;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f0e5 0%, #f0e0cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: #a8743a;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-info-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #523829;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-card p,
.contact-info-card a {
    font-size: 13px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
    text-decoration: none;
    word-break: break-word;
}

.contact-info-card a:hover {
    color: #a8743a;
}

/* ========================================
   MAP + FORM SECTION
======================================== */
.contact-main-section {
    padding: 40px 0 60px;
    background: #f8f6f3;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Google Maps */
.contact-map-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8ddd2;
    min-height: 300px;
    background: #e8e0d8;
}

.contact-map-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: block;
    border: 0;
}

/* Contact Form */
.contact-form-wrap {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 24px;
    border: 1px solid #e8ddd2;
}

.contact-form-title {
    font-family: var(--title-font, 'Servetica', serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: #523829;
    margin-bottom: 6px;
}

.contact-form-title span {
    background: linear-gradient(82deg, #653e2c 0%, #c6803b 63.6%, #ecd69f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form-desc {
    font-size: 14px;
    color: #888888;
    margin-bottom: 24px;
    line-height: 1.5;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-form-group {
    position: relative;
}

.contact-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #523829;
    margin-bottom: 6px;
}

.contact-form-group label .required {
    color: #e74c3c;
    margin-left: 2px;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0d5c8;
    border-radius: 10px;
    font-size: 14px;
    color: #333333;
    background: #fdfcfa;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
    border-color: #c4956a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.1);
}

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

.contact-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

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

.contact-form-submit {
    width: 100%;
    padding: 14px 30px;
    background: #523829;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
    margin-top: 8px;
}

.contact-form-submit:hover {
    background: #3d2a1e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 56, 41, 0.25);
}

.contact-form-submit:active {
    transform: translateY(0);
}

.contact-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-form-submit svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Form Messages */
.contact-form-message {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 16px;
    display: none;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.contact-form-message.success {
    display: flex;
    background: #ecf8ef;
    color: #1e7e34;
    border: 1px solid #c3e6cb;
}

.contact-form-message.error {
    display: flex;
    background: #fdf0f0;
    color: #c62828;
    border: 1px solid #f5c6cb;
}

.contact-form-message svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ========================================
   ADDITIONAL INFO SECTION
======================================== */
.contact-extra-section {
    padding: 50px 0 60px;
    background: #ffffff;
}

.contact-extra-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-extra-item {
    text-align: center;
}

.contact-extra-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-extra-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-extra-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #523829;
    margin-bottom: 8px;
}

.contact-extra-item p {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   RESPONSIVE - Tablet (768px+)
======================================== */
@media (min-width: 768px) {
    .contact-hero {
        min-height: 320px;
    }
    
    .contact-hero-content {
        padding: 120px 0 50px;
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .contact-info-card {
        padding: 28px 20px;
    }
    
    .contact-main-section {
        padding: 50px 0 70px;
    }
    
    .contact-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .contact-map-wrap,
    .contact-map-wrap iframe {
        min-height: 100%;
    }
    
    .contact-form-wrap {
        padding: 35px 30px;
    }
    
    .contact-form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-form-submit {
        width: auto;
        padding: 14px 40px;
    }
    
    .contact-extra-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   RESPONSIVE - Desktop (992px+)
======================================== */
@media (min-width: 992px) {
    .contact-hero {
        min-height: 360px;
    }
    
    .contact-hero-content {
        padding: 140px 0 60px;
    }
    
    .contact-hero-subtitle {
        font-size: 16px;
    }
    
    .contact-info-section {
        padding: 60px 0 0;
    }
    
    .contact-info-grid {
        gap: 24px;
    }
    
    .contact-info-card {
        padding: 35px 24px;
    }
    
    .contact-info-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        margin-bottom: 18px;
    }
    
    .contact-info-card h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .contact-info-card p,
    .contact-info-card a {
        font-size: 14px;
    }
    
    .contact-main-section {
        padding: 60px 0 80px;
    }
    
    .contact-form-wrap {
        padding: 40px 35px;
    }
    
    .contact-form-title {
        font-size: 1.75rem;
    }
    
    .contact-extra-section {
        padding: 60px 0 80px;
    }
    
    .contact-extra-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 20px;
    }
    
    .contact-extra-item h3 {
        font-size: 18px;
    }
}

/* ========================================
   RESPONSIVE - Large Desktop (1200px+)
======================================== */
@media (min-width: 1200px) {
    .contact-info-card {
        padding: 40px 28px;
    }
    
    .contact-main-grid {
        gap: 40px;
    }
    
    .contact-form-wrap {
        padding: 45px 40px;
    }
}

/* ========================================
   LOADING SPINNER
======================================== */
.contact-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: contact-spin 0.6s linear infinite;
}

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