/* ===== Contact Page Consolidated Styles ===== */

/* Color Variables */
:root {
    --primary: #c98650;
    --primary-dark: #b36840;
    --secondary: #f15a24;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --dark: #333;
    --light: #f8f9fa;
    --border: #e0e0e0;
    --text: #666;
    --shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("../images/contact/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.9;
}

/* Contact Form & Info Containers */
.contact-form-container,
.contact-info-container {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: all 0.3s ease;
}

.contact-info-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-form-container h4,
.contact-info-container h4 {
    color: var(--dark);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.intro-text {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #333;
    background: var(--light);
}

/* Placeholder Styles */
.form-control::placeholder {
    color: #999;
    opacity: 1;
}

.form-control::-webkit-input-placeholder {
    color: #999;
}

.form-control::-moz-placeholder {
    color: #999;
    opacity: 1;
}

.form-control:-ms-input-placeholder {
    color: #999;
}

/* Input States */
.form-control:not(:placeholder-shown) {
    color: #222;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 160, 80, 0.1);
    background: white;
    color: #000;
}

.form-control.error {
    border-color: var(--danger);
    background-color: #fff8f8;
    color: #333;
}

.form-control.error::placeholder {
    color: #999;
}

.form-control:disabled {
    background-color: #e9ecef;
    color: #666;
    cursor: not-allowed;
}

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

/* Error Messages */
.error-message {
    display: none;
    color: var(--danger);
    font-size: 13px;
    margin-top: 5px;
    padding-left: 15px;
    position: relative;
}

.error-message::before {
    content: "!";
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-weight: bold;
    margin-right: 5px;
    font-size: 12px;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.char-counter.warning {
    color: var(--warning);
}

.char-counter.danger {
    color: var(--danger);
}

.form-control:focus~.char-counter {
    color: var(--dark);
    font-weight: 500;
}

/* Submit Button */
.btn-submit {
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201, 160, 80, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #ccc;
}

.btn-submit i {
    margin-right: 8px;
}

/* Success & Error Messages */
.success-message,
.error-banner {
    display: none;
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    animation: slideDown 0.5s ease;
    color: white;
}

.success-message {
    background: linear-gradient(135deg, var(--success), #20c997);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.error-banner {
    background: linear-gradient(135deg, var(--danger), #c82333);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.success-message i,
.error-banner i {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.success-message strong,
.error-banner strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Info Items */
.contact-info-item {
    background: var(--light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-info-item h4 {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
}

.contact-info-item h4 i {
    color: #f15a24;
    font-size: 24px;
}

/* Contact Details */
.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-details li:last-child {
    margin-bottom: 0;
}

.contact-details li i {
    color: #f07143;
    font-size: 18px;
    min-width: 25px;
    margin-top: 3px;
}

.contact-details li strong {
    color: var(--dark);
    font-weight: 600;
    min-width: 100px;
}

.contact-details li a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details li a:hover {
    color: var(--primary);
}

.contact-details li div {
    line-height: 1.6;
    color: var(--text);
}

/* Map */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.map-embed {
    position: relative;
    width: 100%;
    overflow: hidden;
}

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

/* Business Hours */
.business-hours {
    background: var(--light);
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.hours-list li .day {
    color: var(--dark);
    font-weight: 500;
}

.hours-list li .time {
    color: var(--text);
}

/* Emergency Contact */
.emergency-contact {
    background: #fff3cd;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
    border-left: 4px solid var(--secondary);
}

.emergency-contact h5 {
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.emergency-contact h5 i {
    color: var(--secondary);
}

.emergency-contact p {
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.6;
}

.emergency-number {
    font-size: 24px;
    color: var(--secondary);
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin: 10px 0;
}

.emergency-number:hover {
    color: var(--primary-dark);
}

/* Utility Classes */
.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

.field-note {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    margin-left: 15px;
}

/* Loading Spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 992px) {

    .contact-form-container,
    .contact-info-container {
        margin-bottom: 30px;
    }

    .contact-info-container {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 36px;
    }

    .contact-hero {
        padding: 60px 0;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 30px 20px;
    }

    .emergency-number {
        font-size: 20px;
    }

    .contact-details li {
        flex-direction: column;
        gap: 5px;
    }

    .contact-details li strong {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .contact-hero h1 {
        font-size: 28px;
    }

    .contact-hero p {
        font-size: 16px;
    }

    .btn-submit {
        padding: 12px 30px;
        font-size: 14px;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 20px 15px;
    }
}