/* ==========================================================================
   Contact Page Styles - Consistent with About Page Theme
   Colors: --primary (#011936), --accent (#e43636)
   ========================================================================== */

:root {
    --primary: #011936;
    --accent: #e43636;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-light: #e2e8f0;
}

/* Page Hero Section - Same as about page */
.page-hero-section {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Breadcrumb Styling */
.hero-breadcrumb {
    margin-bottom: 2rem;
}

    .hero-breadcrumb .breadcrumb {
        background: none;
        padding: 0;
        margin: 0;
    }

    .hero-breadcrumb .breadcrumb-item {
        font-size: 1.2rem;
        font-weight: 800;
        letter-spacing: 0px;
    }

        .hero-breadcrumb .breadcrumb-item a {
            color: rgba(255, 255, 255, 1);
            text-decoration: none;
            transition: all 0.3s ease;
        }

            .hero-breadcrumb .breadcrumb-item a:hover {
                color: var(--accent);
            }

        .hero-breadcrumb .breadcrumb-item.active {
            color: var(--accent);
            font-weight: 600;
        }

        .hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
            content: "/";
            color: rgba(255, 255, 255, 0.9);
            margin: 0 0.1rem;
        }

/* Hero Title */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease-out;
/*    webkit-text-stroke: .5px #fff;
    text-shadow: 0 0 1px #fff;*/
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Contact Section */
.contact-section-modern {
    background: var(--bg-light);
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

    .contact-section-modern::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 20%, rgba(228, 54, 54, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(1, 25, 54, 0.03) 0%, transparent 50%);
        pointer-events: none;
    }

/* Section Header - Same style as about page */
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    height: fit-content;
}

    .contact-form-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
    }

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.75rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.form-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.form-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

/* Modern Form Styles */
.modern-form {
    position: relative;
}

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

.form-group {
    position: relative;
    margin-bottom: 0.6rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

    .form-label i {
        color: var(--accent);
        font-size: 0.875rem;
        width: 16px;
    }

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    background: #f9fafb;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    color: var(--primary);
}

    .form-input:focus {
        outline: none;
        border-color: var(--accent);
        background: var(--white);
        box-shadow: 0 0 0 4px rgba(228, 54, 54, 0.1);
    }

    .form-input::placeholder {
        color: var(--text-light);
    }

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e43636' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

/* Submit Button */
.form-actions {
    margin-top: 2rem;
}

.submit-button {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #e43636, #8a0606);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(228, 54, 54, 0.3);
}

    .submit-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(228, 54, 54, 0.4);
        background: linear-gradient(135deg, #e43636, #8a0606);
    }

    .submit-button:active {
        transform: translateY(0);
    }

.button-loading {
    display: none;
}

.submit-button.loading .button-text {
    display: none;
}

.submit-button.loading .button-loading {
    display: block;
}

.submit-button.loading {
    cursor: not-allowed;
    transform: none;
}

/* Form Alerts */
.form-alert {
    display: none;
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid;
    align-items: center;
    gap: 1rem;
}

    .form-alert.show {
        display: flex;
        animation: slideUp 0.3s ease;
    }

.form-success {
    background: #f0fdf4;
    border-color: #10b981;
    color: #065f46;
}

.form-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.alert-content p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

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

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

/* Contact Info Wrapper */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .contact-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border-color: var(--accent);
    }

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.form-input-card .card-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.email-card .card-icon {
    background: linear-gradient(135deg, var(--accent) 0%, #c92a2a 100%);
}
.phone-card .card-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.location-card .card-icon {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2f42 100%);
}

.card-content {
    flex: 1;
}

    .card-content h4 {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--primary);
        margin: 0 0 0.25rem 0;
    }

    .card-content p {
        color: var(--text-light);
        margin: 0 0 0.5rem 0;
        font-size: 0.9rem;
        line-height: 1.4;
    }

.card-badge {
    display: inline-block;
    background: #f1f5f9;
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-action {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card:hover .card-action {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

/* WhatsApp CTA */
.whatsapp-cta {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

    .whatsapp-cta::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
        animation: rotate 20s linear infinite;
    }

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

    to {
        transform: rotate(360deg);
    }
}

.whatsapp-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.whatsapp-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.whatsapp-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.whatsapp-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

    .whatsapp-button:hover {
        background: rgba(255, 255, 255, 0.3);
        color: white;
        transform: translateY(-2px);
    }

/* Business Hours */
.business-hours {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
}

    .business-hours h4 {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--primary);
        margin-bottom: 1rem;
    }

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

    .hour-item:last-child {
        border-bottom: none;
    }

.day {
    font-weight: 500;
    color: var(--text-light);
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .page-hero-section {
        min-height: 50vh;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

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

    .contact-form-wrapper {
        padding: 2rem;
    }

    .whatsapp-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-header {
        margin-bottom: 3rem;
    }

    .contact-section-modern {
        padding: 1.5rem 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-breadcrumb .breadcrumb-item {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .page-hero-section {
        min-height: 45vh;
    }

    .hero-content {
        padding: 1rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-header h3 {
        font-size: 1.5rem;
    }

    .form-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Additional Enhancements */
.page-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: 1;
}

.hero-content {
    animation: heroContentFadeIn 1.2s ease-out;
}

@keyframes heroContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Additional CSS for validation and form enhancements */

.form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Error message styles */
.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    height: 0;
    overflow: hidden;
}

    .error-message.show {
        opacity: 1;
        height: auto;
        padding-top: 0.25rem;
    }

/* Input validation states */
.form-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
    background-color: #fdf2f2;
}

.form-input.valid {
    border-color: #27ae60;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
    background-color: #f8fff8;
}

.form-input.error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.form-input.valid:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
}

/* Button loading state */
/*.submit-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
}

    .submit-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    }

    .submit-button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }*/

.button-loading {
    display: none;
}

/*.submit-button.loading .button-text {
    display: none;
}

.submit-button.loading .button-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}*/

/* Alert styles */
.form-alert {
    display: none;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    animation: slideIn 0.3s ease;
}

    .form-alert.show {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

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

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

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.alert-content p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Form animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Validation icon styles */
.form-group {
    position: relative;
}

.validation-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.form-group .form-label + .form-input + .validation-icon {
    top: calc(50% + 0.75rem);
}

.validation-icon.valid {
    color: #27ae60;
    opacity: 1;
}

.validation-icon.error {
    color: #e74c3c;
    opacity: 1;
}

/* Phone input formatting */
/*.form-input[type="tel"] {
    font-family: 'Courier New', monospace;
}*/

/* Responsive design */
@media (max-width: 768px) {
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }

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

    .submit-button {
        max-width: 100%;
    }
}

/* Focus management for accessibility */
.form-input:focus {
    outline: none;
    z-index: 1;
    position: relative;
}

/* Loading overlay for form */
.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 1000;
}

.modern-form {
    position: relative;
}

.form-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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