/* Contact Page Styles */

/* Hero Section */
.contact-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 160px 0 120px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.contact-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Floating Objects */
.floating-objects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.float-item {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.float-item i {
    color: #fff;
    font-size: 24px;
}

.phone-object {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.email-object {
    width: 70px;
    height: 70px;
    top: 30%;
    right: 20%;
    animation-delay: -2s;
}

.map-object {
    width: 60px;
    height: 60px;
    bottom: 25%;
    left: 25%;
    animation-delay: -1s;
}

.chat-object {
    width: 65px;
    height: 65px;
    bottom: 30%;
    right: 15%;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(15px) rotate(-5deg);
    }
}

.contact-hero .hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-hero h1 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.primary-btn {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.section-header {
    margin-bottom: 40px;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Contact Form Styles */
.contact-form {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
}

.contact-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.contact-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-form label i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form input[type="url"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
    font-size: 0.9rem;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

.contact-form select option {
    padding: 12px 15px;
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: #fff;
    cursor: pointer;
}

/* Styling the dropdown */
.contact-form select::-ms-expand {
    display: none;
}

.contact-form select option:checked,
.contact-form select option:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

/* Firefox specific styles */
@-moz-document url-prefix() {
    .contact-form select {
        color: var(--text-color);
        background-color: #fff;
    }
    
    .contact-form select option {
        background-color: #fff;
        color: var(--text-color);
        padding: 12px 15px;
    }
    
    .contact-form select option:checked,
    .contact-form select option:hover {
        box-shadow: 0 0 10px 100px var(--primary-color) inset;
        color: #fff;
    }
}

/* Webkit specific styles (Chrome, Safari) */
.contact-form select::-webkit-scrollbar {
    width: 8px;
}

.contact-form select::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.contact-form select::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.contact-form select::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Select container style */
.contact-form .select-wrapper {
    position: relative;
}

.contact-form select {
    height: auto;
    min-height: 45px;
}

/* Style for the first (placeholder) option */
.contact-form select option:first-child {
    color: #999;
    font-style: italic;
}

/* Style for other options */
.contact-form select option:not(:first-child) {
    font-weight: 500;
}

/* Hover state for the select */
.contact-form select:hover {
    border-color: var(--primary-color);
}

/* Active/Open state for the select */
.contact-form select:active,
.contact-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* Style for disabled options if any */
.contact-form select option:disabled {
    color: #999;
    background-color: #f5f5f5;
    font-style: italic;
}

/* Multiple select size adjustment if needed */
.contact-form select[multiple] {
    height: auto;
    padding: 0;
    background-image: none;
}

.contact-form select[multiple] option {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.contact-form select[multiple] option:last-child {
    border-bottom: none;
}

/* Enhanced option styling */
.contact-form select option {
    margin: 5px 0;
    transition: all 0.2s ease;
}

/* Option groups if needed */
.contact-form select optgroup {
    font-weight: 600;
    color: var(--primary-color);
    background-color: #f8f9fa;
    padding: 5px 0;
}

.contact-form select optgroup option {
    padding-left: 25px;
    font-weight: normal;
    color: var(--text-color);
}

/* Remove default focus outline and add custom one */
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.contact-form .submit-wrapper {
    text-align: center;
    margin-top: 20px;
}

.contact-form input[type="submit"] {
    background: var(--primary-color);
    color: #fff;
    padding: 14px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form input[type="submit"]:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Form Grid Layout */
.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.contact-form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

/* Validation Styles */
.contact-form .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
    padding-left: 28px;
}

.contact-form .wpcf7-not-valid {
    border-color: #dc3545;
}

.contact-form .wpcf7-response-output {
    grid-column: 1 / -1;
    margin: 20px 0 0 0 !important;
    padding: 12px 20px !important;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    border-width: 1px !important;
}

.contact-form .wpcf7-spinner {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form {
        padding: 15px;
    }

    .contact-form input[type="submit"] {
        width: 100%;
        padding: 12px 20px;
    }

    .contact-form .wpcf7-spinner {
        position: static;
        margin: 10px auto 0;
        display: block;
    }
}

/* Additional Form Enhancements */
.contact-form .form-group {
    position: relative;
    transition: all 0.3s ease;
}

.contact-form .form-group:focus-within label {
    color: var(--primary-color);
}

.contact-form .form-group:focus-within label i {
    transform: scale(1.1);
}

.contact-form input[type="submit"] {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form input[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.contact-form input[type="submit"]:hover::before {
    opacity: 1;
}

/* Form Field Animation */
.contact-form input,
.contact-form select,
.contact-form textarea {
    transform-origin: left top;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    transform: translateY(-1px);
}

/* Error State Enhancement */
.contact-form .wpcf7-not-valid {
    background-color: rgba(220, 53, 69, 0.02);
}

/* Success Message Enhancement */
.wpcf7 form.sent .wpcf7-response-output {
    background-color: #d4edda;
    border-color: #c3e6cb !important;
    color: #155724;
}

/* Error Message Enhancement */
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
    background-color: #f8d7da;
    border-color: #f5c6cb !important;
    color: #721c24;
}

/* Contact Info Styles */
.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.office-card {
    margin-bottom: 40px;
}

.office-card:last-child {
    margin-bottom: 30px;
}

.office-card h3 {
    color: var(--heading-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-item a {
    color: var(--text-color);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item p {
    margin: 0;
    line-height: 1.6;
}

/* Business Hours */
.business-hours {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.business-hours h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.hours-item span {
    color: var(--text-color);
}

.hours-item span:last-child {
    font-weight: 500;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.map-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.map-card-header {
    padding: 20px;
    background: var(--primary-color);
    color: #fff;
}

.map-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    color: #fff;
    gap: 10px;
}

.map-card-header i {
    font-size: 1.1rem;
}

.map-wrapper {
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.contact-map {
    width: 100%;
    height: 300px;
    border: none;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Map Section Responsive Styles */
@media (max-width: 991px) {
    .maps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .map-card {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .map-section {
        padding: 60px 0;
    }

    .map-card-header {
        padding: 15px;
    }

    .map-card-header h3 {
        font-size: 1.1rem;
    }

    .contact-map {
        height: 250px;
    }
}

/* Map Card Animation */
.map-card {
    position: relative;
    overflow: hidden;
}

.map-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.map-card:hover::before {
    transform: scaleX(1);
}

/* Select Dropdown Styles */
.wpcf7-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px !important;
}

.wpcf7-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23000' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
} 