/* Contact Page Styles - Modern Dark Theme */

.contact-container {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

/* Contact Form */
.contact-form {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.contact-form:hover {
    border-color: var(--border-bright);
    box-shadow: 0 25px 50px rgba(45, 95, 63, 0.15);
}

.contact-form h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-orange-dark));
}

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

.form-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
}

/* Form Input Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--border-subtle);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1);
}

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

/* Error States */
.form-input.error,
.form-textarea.error {
    border-color: #EF4444 !important;
    background: rgba(255, 245, 245, 1) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.error-message {
    color: #F87171;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
    padding-left: 0.25rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Phone Number with Country Code */
.phone-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.phone-country-code {
    flex-shrink: 0;
    width: 140px;
}

.phone-country-code select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--border-subtle);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-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='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.phone-country-code select:focus {
    outline: none;
    border-color: var(--accent-orange);
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1);
}

.phone-country-code select.error {
    border-color: #EF4444 !important;
    background-color: rgba(255, 245, 245, 1) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

.phone-number {
    flex: 1;
}

/* Checkbox styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
    color: var(--text-secondary);
}

.form-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-orange);
}

/* Contact Information */
.contact-info {
    background: linear-gradient(135deg, rgba(45, 95, 63, 0.05) 0%, var(--bg-card) 100%);
    padding: 3rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border-subtle);
}

.contact-info h2 {
    margin-bottom: 2.5rem;
    font-size: 2rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: transparent;
    border-radius: 1rem;
    border: none;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-green);
    transition: all 0.3s ease;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-item:hover .contact-icon {
    color: var(--accent-orange);
    transform: scale(1.1);
}

.contact-item-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15),
                 0 1px 2px rgba(0, 0, 0, 0.2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.contact-item-content p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.contact-item-content a {
    color: var(--accent-orange);
    word-break: break-word;
    transition: all 0.3s ease;
}

.contact-item-content a:hover {
    color: var(--accent-orange-light);
    padding-left: 3px;
}

/* Service Area */
.service-area {
    background: rgba(42, 42, 42, 0.5);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 1.25rem;
    margin-top: 3rem;
    border: 1px solid var(--border-subtle);
}

.service-area h3 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.service-area p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.service-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.location-tag {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-orange);
    box-shadow: 0 4px 15px rgba(45, 95, 63, 0.3);
}

.location-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45, 95, 63, 0.5);
}

/* Business Hours */
.business-hours {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);
    color: var(--text-secondary);
    padding: 3rem;
    border-radius: 1.25rem;
    margin-top: 3rem;
    border: 1px solid var(--border-subtle);
}

.business-hours h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li:hover {
    padding-left: 1rem;
    background: rgba(45, 95, 63, 0.03);
}

.day {
    color: var(--text-secondary);
    font-weight: 600;
}

.time {
    color: var(--accent-orange);
    font-weight: 600;
}

/* Map placeholder */
.map-container {
    width: 100%;
    height: 400px;
    background: var(--bg-card);
    border-radius: 1.25rem;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(45, 95, 63, 0.02) 20px,
        rgba(45, 95, 63, 0.02) 40px
    );
}

/* Responsive */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .contact-form,
    .contact-info,
    .service-area,
    .business-hours {
        padding: 2rem;
    }

    .contact-item {
        padding: 1.25rem;
    }

    .map-container {
        height: 300px;
    }

    .phone-input-group {
        flex-direction: column;
    }

    .phone-country-code {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-form h2 {
        font-size: 2rem;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .service-locations {
        flex-direction: column;
    }

    .location-tag {
        text-align: center;
    }
}
