/* Contact Page Styles */
:root {
    --contact-primary: #1a1a1a;
    --contact-accent: #8b7355;
    --contact-light: #f8f6f3;
    --contact-border: #e5e0d8;
    --contact-success: #4caf50;
}

/* Main Layout */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Left Visual Panel */
.contact-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-visual-bg {
    position: absolute;
    inset: 0;
}

.contact-visual-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(26, 26, 26, 0.7) 50%,
        rgba(139, 115, 85, 0.6) 100%
    );
}

.contact-visual-content {
    position: relative;
    z-index: 1;
    padding: 4rem;
    color: #fff;
    max-width: 500px;
}

.contact-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-year,
.badge-icon {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    color: var(--contact-accent);
}

.badge-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.contact-visual-title {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.contact-visual-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.contact-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 300;
    color: var(--contact-accent);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Right Form Panel */
.contact-form-section {
    background: var(--contact-light);
    padding: 3rem;
    overflow-y: auto;
}

.contact-form-container {
    max-width: 540px;
    margin: 0 auto;
}

/* Quick Contact Bar */
.quick-contact-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quick-contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #fff;
    border: 1px solid var(--contact-border);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--contact-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-contact-btn:hover {
    background: var(--contact-primary);
    color: #fff;
    border-color: var(--contact-primary);
}

.quick-contact-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

/* Response Indicator */
.response-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    color: #666;
}

.response-dot {
    width: 8px;
    height: 8px;
    background: var(--contact-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.contact-form-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--contact-primary);
}

.contact-form-subtitle {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Inquiry Type Selector */
.inquiry-type-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.inquiry-type-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: #fff;
    border: 2px solid var(--contact-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.inquiry-type-btn:hover {
    border-color: var(--contact-accent);
    color: var(--contact-primary);
}

.inquiry-type-btn.active {
    border-color: var(--contact-primary);
    background: var(--contact-primary);
    color: #fff;
}

.inquiry-type-btn span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Floating Label Form Group */
.form-group {
    position: relative;
    background: #fff;
    border-radius: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.25rem 1rem 0.5rem;
    border: 1px solid var(--contact-border);
    border-radius: 8px;
    font-size: 1rem;
    background: transparent;
    transition: all 0.3s ease;
    color: var(--contact-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.2s ease;
    background: #fff;
    padding: 0 0.25rem;
}

.form-group textarea + label {
    top: 1.25rem;
    transform: none;
}

.form-group.focused label,
.form-group.has-value label,
.form-group select + label,
.form-group .label-always-up {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--contact-accent);
}

.form-group.focused input,
.form-group.focused textarea,
.form-group.focused select {
    border-color: var(--contact-primary);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.05);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
}

/* Consents */
.form-consents {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.consent-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--contact-primary);
}

.consent-group label {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #666;
    cursor: pointer;
}

.consent-group label a {
    color: var(--contact-primary);
    text-decoration: underline;
}

/* reCAPTCHA */
.recaptcha-container {
    margin: 1rem 0;
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--contact-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    background: var(--contact-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-icon {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: block;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success Message */
.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-animation {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.checkmark {
    width: 100%;
    height: 100%;
}

.checkmark-circle {
    stroke: var(--contact-success);
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: var(--contact-success);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

.form-success h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--contact-primary);
}

.form-success p {
    color: #666;
    margin-bottom: 2rem;
}

.success-cta {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--contact-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.success-cta:hover {
    background: var(--contact-accent);
}

/* Address Cards */
.address-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--contact-border);
}

.address-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--contact-border);
}

.address-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--contact-light);
    border-radius: 12px;
    color: var(--contact-accent);
    flex-shrink: 0;
}

.address-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--contact-primary);
}

.address-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.address-content a {
    font-size: 0.85rem;
    color: var(--contact-accent);
    text-decoration: none;
}

.address-content a:hover {
    text-decoration: underline;
}

/* Map Section */
.contact-map {
    background: #fff;
}

.map-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
}

.map-header h2 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.map-header p {
    color: #666;
}

.map-container {
    width: 100%;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(20%);
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-visual {
        min-height: 50vh;
    }

    .contact-visual-content {
        padding: 2rem;
    }

    .contact-visual-title {
        font-size: 2rem;
    }

    .contact-stats {
        gap: 1.5rem;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .address-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contact-form-section {
        padding: 1.5rem;
    }

    .quick-contact-bar {
        flex-wrap: wrap;
    }

    .quick-contact-btn {
        flex: 1 1 calc(50% - 0.375rem);
        justify-content: center;
    }

    .inquiry-type-selector {
        flex-direction: column;
    }

    .contact-visual-content {
        padding: 1.5rem;
    }

    .contact-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat {
        flex: 1 1 40%;
    }
}
