/* Contact Page Specific Styles */

/* Container width override to match header and homepage */
.container {
    width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Service Hero Section (matching other pages) */
.service-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    padding: 0;
}

.service-hero .container {
    width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

.service-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.service-hero-background img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(0);
    will-change: transform;
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: -1;
}

.service-hero-content {
    width: 55%;
    color: var(--white);
    text-align: left;
    margin-left: 0;
}

.service-hero-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

.service-hero-content p {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.5;
}

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

/* Contact Page Layout */
.contact-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.contact-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    padding: 0 0 0 10%;
    background-color: var(--light-blue);
}

.contact-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.contact-hero-background img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(0);
    will-change: transform;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: -1;
}

.contact-hero-content {
    width: 60%;
    color: var(--white);
    text-align: left;
}

.contact-hero-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

.contact-hero-content p {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.5;
}

.contact-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Contact Form Section */
.contact-form {
    padding: 6rem 0;
    background-color: var(--white);
}

.contact-wrapper {
    background-color: #dcecf8;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 0;
    align-items: stretch;
    overflow: hidden;
}

.contact-image {
    border-radius: 0;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 500px;
}

.contact-form-content {
    background-color: #dcecf8;
    padding: 3rem;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

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

.contact-form-content input,
.contact-form-content select,
.contact-form-content textarea {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    background-color: var(--white);
}

.contact-form-content button {
    width: auto;
}

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

.contact-form-content textarea {
    margin-bottom: 1.5rem;
    resize: vertical;
    min-height: 120px;
}

/* Special styling for the actual contact page layout */
.contact-content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    background: var(--white);
    color: var(--primary-color);
    padding: 4rem;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.contact-info {
    flex: 1;
    padding-right: 2rem;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 16px;
    line-height: 1.6;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form-area {
    flex: 1;
    background-color: var(--white);
    padding-left: 2rem;
}

.contact-form-area h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact-form-area input,
.contact-form-area select,
.contact-form-area textarea {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    background-color: var(--white);
    margin-bottom: 1rem;
}

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

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

.form-group {
    margin-bottom: 1.5rem;
}

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

/* Contact Information Cards */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

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

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item p {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

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

/* Contact section styling */
.contact-form {
    background: white;
    border-radius: 0;
    margin-bottom: 4rem;
}

/* Contact wrapper with flexbox layout */
.contact-wrapper {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    background: white;
    border-radius: 0;
    padding: 3rem;
    opacity: 1;
    transform: translateY(0px);
    transition: opacity 0.6s, transform 0.6s;
}

/* Contact information section */
.contact-info-section {
    flex: 1;
    color: var(--primary-color);
}

.contact-info-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-info-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-info-content p {
    color: var(--primary-color);
    margin: 0;
    line-height: 1.5;
}

/* Inline CSS styles moved to CSS classes */
.contact-info-wrapper {
    flex: 1;
    color: var(--primary-color);
}

.contact-info-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-info-wrapper > div {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-wrapper > div > div {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-wrapper > div > div > div:first-child {
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-info-wrapper h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-info-wrapper p {
    color: var(--primary-color);
    margin: 0;
    line-height: 1.5;
}

.contact-info-wrapper p a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info-wrapper p a:hover {
    text-decoration: underline;
}

.contact-form-main {
    flex: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 2.5rem;
    background: white;
}

.contact-form-main h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-form-main .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form-main input,
.contact-form-main select,
.contact-form-main textarea {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    flex: 1;
    background-color: var(--white);
}

.contact-form-main textarea {
    width: 100%;
    margin-bottom: 1.5rem;
    resize: vertical;
    min-height: 120px;
}

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

/* Contact form with shadow */
.contact-form-wrapper {
    flex: 1;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 30px;
    border-radius: 10px;
    padding: 2rem;
    background: white;
}

.contact-form-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-form-wrapper .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form-wrapper input,
.contact-form-wrapper select,
.contact-form-wrapper textarea {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    flex: 1;
    background-color: var(--white);
}

.contact-form-wrapper textarea {
    width: 100%;
    margin-bottom: 1.5rem;
    resize: vertical;
    min-height: 120px;
}

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

/* Contact Page Mobile Responsive */
@media (max-width: 768px) {
    .container {
        width: 90vw;
        padding: 0;
        margin: 0 auto;
    }
    
    .service-hero .container {
        width: 90vw;
        padding: 0;
        margin: 0 auto;
    }
    
    .service-hero {
        padding: 0;
        text-align: left;
        align-items: flex-start;
    }
    
    .service-hero-content {
        width: 100%;
        text-align: left;
    }
    
    .service-hero-buttons {
        justify-content: center;
    }
    
    .contact-hero {
        padding: 0 5%;
        text-align: center;
        align-items: center;
    }
    
    .contact-hero-content {
        width: 90%;
        text-align: center;
    }
    
    .contact-hero-buttons {
        justify-content: center;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 3rem;
        padding: 2rem;
    }
    
    .contact-info,
    .contact-form-area {
        padding: 0;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-image {
        order: 1;
        min-height: 100px;
        height: 200px;
    }
    
    .contact-form-content {
        order: 2;
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    /* New contact wrapper tablet responsive */
    .contact-wrapper {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    
    .contact-form-main {
        padding: 1rem;
    }
    
    .contact-form-main .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 90vw;
        padding: 0;
        margin: 0 auto;
    }
    
    .service-hero .container {
        width: 90vw;
        padding: 0;
        margin: 0 auto;
    }
    
    .service-hero {
        height: 50vh;
        min-height: 400px;
        padding: 0;
    }
    
    .service-hero-content h1 {
        font-size: 2rem;
    }
    
    .service-hero-content p {
        font-size: 1rem;
    }
    
    .service-hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .service-hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .contact-hero {
        height: 50vh;
        min-height: 400px;
        padding: 0 5%;
    }
    
    .contact-hero-content h1 {
        font-size: 2rem;
    }
    
    .contact-hero-content p {
        font-size: 1rem;
    }
    
    .contact-hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .contact-content {
        padding: 1.5rem;
    }
    
    .contact-form-content {
        padding: 1.5rem 1rem;
    }
    
    .contact-form-content h2,
    .contact-form-area h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-info h2 {
        font-size: 2rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    /* New contact wrapper mobile responsive */
    .contact-wrapper {
        flex-direction: column;
        gap: 2rem;
        padding: 0 !important;
    }
    
    .contact-form-main {
        padding: 1.25rem;
    }
    
    .contact-form-main .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .contact-form-wrapper .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Form Message Styles */
.form-message {
    display: none;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    line-height: 1.5;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading Spinner */
.spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

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

/* Button Loading State */
button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Validation Styles */
input:invalid:not(:focus):not(:placeholder-shown),
textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
}

input:valid:not(:focus):not(:placeholder-shown),
textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: #28a745;
}

/* Cloudflare Turnstile Widget */
.cf-turnstile {
    margin-bottom: 1.5rem;
}

.contact-form-main .cf-turnstile,
.contact-form-wrapper .cf-turnstile {
    display: flex;
    justify-content: flex-start;
}