/* ===================================
   CONTACT PAGE SPECIFIC STYLES
   =================================== */

/* Page Header with Background */
.page-header {
    background-image: url('../../Assets/contactUs.jpg');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 8rem 0 6rem;
    position: relative;
    min-height: 300px;
}

@media (min-width: 769px) {
    .page-header {
        background-size: auto 100%;
        min-height: 350px;
    }
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

/* Reach Us Section */
.reach-us-section {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    height: fit-content;
}

.reach-us-header {
    margin-bottom: 2rem;
}

.reach-us-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.reach-us-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 50%, #3B82F6 75%, #60A5FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
}

.reach-us-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.contact-method-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    text-decoration: none;
}

.contact-method-link:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.contact-method-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.contact-method-icon svg {
    width: 20px;
    height: 20px;
}

.contact-method-icon svg {
    color: white;
}

.contact-method-icon.whatsapp {
    background: #25D366;
}

.contact-method-link:hover .contact-method-icon {
    transform: scale(1.1) rotate(5deg);
}

.visit-us-section {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border-color);
}

.visit-us-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.map-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
}

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

.map-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 1rem;
    pointer-events: none;
}

.map-address-card {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 280px;
    pointer-events: all;
}

[data-theme="dark"] .map-address-card {
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.map-location-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.map-location-address {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.map-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.rating-score {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.rating-stars {
    color: #F59E0B;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.reviews-link {
    font-size: 0.8125rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.reviews-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.map-directions-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast);
}

.map-directions-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.view-larger-map {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.view-larger-map:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

[data-theme="dark"] .reach-us-section {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .contact-method-link {
    background: rgba(15, 23, 42, 0.6);
}

[data-theme="dark"] .contact-method-link:hover {
    background: rgba(30, 41, 59, 0.8);
}

[data-theme="dark"] .address-info {
    background: rgba(15, 23, 42, 0.6);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.contact-form-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-form-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Services Checkbox Grid */
.services-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.service-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.service-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.service-checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    border-color: #F59E0B;
}

.service-checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

.service-checkbox-label:has(input[type="checkbox"]:checked) .checkbox-text {
    color: var(--primary-color);
    font-weight: 600;
}

[data-theme="dark"] .service-checkbox-label:has(input[type="checkbox"]:checked) .checkbox-text {
    color: #3b82f6;
    font-weight: 600;
}

.checkbox-text {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-primary);
    user-select: none;
    line-height: 1.4;
}

/* Selected Services Display */
.selected-services-container {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 1rem;
    transition: all var(--transition-base);
}

.selected-services-header {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.selected-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.selected-service-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    animation: slideIn 0.3s ease;
}

.selected-service-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.selected-service-tag .remove-service {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.selected-service-tag .remove-service:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.selected-service-tag .remove-service svg {
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
}

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

[data-theme="dark"] .selected-services-container {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Responsive - Contact Page */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 6rem 0 4rem;
    }
    
    .page-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .services-checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .reach-us-title {
        font-size: 2rem;
    }
    
    .reach-us-subtitle {
        font-size: 1.125rem;
    }
    
    .page-header {
        padding: 5rem 0 3rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .reach-us-section,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .reach-us-title {
        font-size: 1.75rem;
    }
    
    .reach-us-subtitle {
        font-size: 1rem;
    }
    
    .contact-method-link {
        font-size: 0.9375rem;
    }
    
    .page-header {
        padding: 4rem 0 2.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
}

/* ===================================
   Mail Loader Animation for Send Button
   =================================== */

#sendMessageBtn {
    position: relative;
    overflow: visible;
}

#sendMessageBtn .btn-text {
    transition: opacity 0.3s ease;
}

#sendMessageBtn.loading .btn-text {
    opacity: 0;
}

#sendMessageBtn.loading {
    pointer-events: none;
}

.mail-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    cursor: default;
}

.animated-mail {
    position: absolute;
    height: 45px;
    width: 60px;
    transition: 0.4s;
    animation: mailFloat 2s ease-in-out infinite;
}

@keyframes mailFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animated-mail .body {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 30px 60px;
    border-color: transparent transparent #e95f55 transparent;
    z-index: 2;
}

.animated-mail .top-fold {
    position: absolute;
    top: 15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 30px 0 30px;
    transform-origin: 50% 0%;
    transition: transform 0.4s 0.4s, z-index 0.2s 0.4s;
    border-color: #cf4a43 transparent transparent transparent;
    z-index: 2;
    animation: foldOpen 1.5s ease-in-out infinite;
}

@keyframes foldOpen {
    0%, 100% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(180deg);
        z-index: 0;
    }
}

.animated-mail .back-fold {
    position: absolute;
    bottom: 0;
    width: 60px;
    height: 30px;
    background: #cf4a43;
    z-index: 0;
}

.animated-mail .left-fold {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 30px;
    border-color: transparent transparent transparent #e15349;
    z-index: 2;
}

.animated-mail .letter {
    left: 6px;
    bottom: 0px;
    position: absolute;
    width: 48px;
    height: 18px;
    background: white;
    z-index: 1;
    overflow: hidden;
    transition: 0.4s 0.2s;
}

.animated-mail .letter .letter-border {
    height: 3px;
    width: 100%;
    background: repeating-linear-gradient(
        -45deg,
        #cb5a5e,
        #cb5a5e 2px,
        transparent 2px,
        transparent 5px
    );
}

.animated-mail .letter .letter-title {
    margin-top: 3px;
    margin-left: 2px;
    height: 3px;
    width: 40%;
    background: #cb5a5e;
}

.animated-mail .letter .letter-context {
    margin-top: 3px;
    margin-left: 2px;
    height: 3px;
    width: 20%;
    background: #cb5a5e;
}

.animated-mail .letter .letter-stamp {
    margin-top: 9px;
    margin-left: 36px;
    border-radius: 100%;
    height: 9px;
    width: 9px;
    background: #cb5a5e;
    opacity: 0.3;
}
