/* ==================== SERVICES PAGE STYLES ==================== */

/* Services Hero */
.services-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
                url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1600') center/cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.services-hero-overlay {
    width: 100%;
    padding: 80px 20px;
}

.services-hero-content {
    text-align: center;
    color: var(--white);
}

.services-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.services-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.services-hero-content h1 span {
    color: var(--primary-color);
}

.services-hero-subtitle {
    font-size: 1.3rem;
    color: #e0e0e0;
}

/* Services Introduction */
.services-intro {
    padding: 80px 0;
    background: var(--white);
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.intro-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Service Detail Sections */
.service-detail {
    padding: 100px 0;
    background: var(--white);
}

.service-detail:nth-child(even) {
    background: var(--light-bg);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-detail-reverse .service-detail-grid {
    direction: rtl;
}

.service-detail-reverse .service-detail-content {
    direction: ltr;
}

.service-detail-image {
    position: relative;
}

.service-detail-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.service-badge-overlay {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 20px 25px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-lg);
}

.service-badge-overlay i {
    font-size: 2rem;
}

.service-badge-overlay span {
    font-weight: 700;
    font-size: 0.9rem;
}

.service-detail-content {
    position: relative;
}

.service-number {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(245, 158, 32, 0.08);
    position: absolute;
    top: -60px;
    left: -20px;
    z-index: 0;
}

.service-detail-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    position: relative;
    z-index: 1;
}

.service-lead {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.7;
}

.service-features-list {
    margin-bottom: 30px;
}

.service-feature-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.service-feature-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.service-feature-item h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.service-feature-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.service-highlights {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.highlight-box {
    background: rgba(245, 158, 32, 0.1);
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--primary-color);
}

.highlight-box i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.highlight-box span {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Why Choose Services */
.services-why-choose {
    padding: 100px 0;
    background: var(--light-bg);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-choose-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.why-choose-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.why-choose-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.why-choose-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.why-choose-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Quote Modal */
.quote-modal .modal-content {
    max-width: 550px;
    padding: 0;
}

.quote-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    padding: 35px 30px;
    text-align: center;
}

.quote-header i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.quote-header h2 {
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 2rem;
}

.quote-header p {
    color: rgba(0, 0, 0, 0.8);
    font-size: 1rem;
}

.quote-form {
    padding: 35px 30px;
    background: var(--white);
}

.quote-form .form-group {
    margin-bottom: 20px;
}

.quote-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.quote-form .form-group label i {
    color: var(--primary-color);
    font-size: 1rem;
}

.quote-form .form-group input,
.quote-form .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.quote-form .form-group input[readonly] {
    background: var(--light-bg);
    color: var(--primary-color);
    font-weight: 600;
}

.quote-form .form-group input:focus,
.quote-form .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(245, 158, 32, 0.1);
}

.quote-form .btn-full {
    margin-top: 15px;
    font-size: 1rem;
    padding: 16px 30px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .services-hero-content h1 {
        font-size: 2.5rem;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-reverse .service-detail-grid {
        direction: ltr;
    }

    .service-detail-image {
        order: -1;
    }

    .service-number {
        font-size: 5rem;
        top: -40px;
    }

    .service-detail-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .services-hero {
        min-height: 50vh;
    }

    .services-hero-content h1 {
        font-size: 2rem;
    }

    .service-detail {
        padding: 60px 0;
    }

    .service-number {
        font-size: 4rem;
        top: -30px;
        left: 0;
    }

    .service-detail-content h2 {
        font-size: 1.7rem;
    }

    .service-highlights {
        flex-direction: column;
    }

    .highlight-box {
        justify-content: center;
    }

    .quote-header {
        padding: 30px 20px;
    }

    .quote-header h2 {
        font-size: 1.6rem;
    }

    .quote-form {
        padding: 30px 20px;
    }
}

/* ==================== CONSTRUCTION PROCESS BANNER ==================== */
.construction-process-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    position: relative;
    overflow: hidden;
}

.construction-process-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(245,158,32,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.process-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.process-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 158, 32, 0.2);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.process-banner-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
}

.process-banner-content h2 span {
    background: linear-gradient(135deg, #F59E20 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 50px;
    opacity: 0.9;
    line-height: 1.8;
}

/* Process Steps Preview */
.process-steps-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 120px;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #F59E20 0%, #e88c0d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(245, 158, 32, 0.4);
    transition: var(--transition);
}

.step-preview-item:hover .step-number {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(245, 158, 32, 0.6);
}

.step-preview-item span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-connector {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(245, 158, 32, 0.3) 0%, 
        rgba(245, 158, 32, 0.8) 50%, 
        rgba(245, 158, 32, 0.3) 100%
    );
    position: relative;
    margin: 0 -10px;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid rgba(245, 158, 32, 0.8);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* Responsive */
@media (max-width: 968px) {
    .process-banner-content h2 {
        font-size: 2.5rem;
    }
    
    .process-steps-preview {
        gap: 20px;
    }
    
    .step-connector {
        display: none;
    }
    
    .step-preview-item {
        min-width: 100px;
    }
}

@media (max-width: 600px) {
    .construction-process-banner {
        padding: 60px 0;
    }
    
    .process-banner-content h2 {
        font-size: 2rem;
    }
    
    .process-subtitle {
        font-size: 1rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-preview-item span {
        font-size: 0.85rem;
    }
}

/* ==================== MODERN QUOTE MODAL ==================== */
/* ==================== COMPLETE MODAL FIX ==================== */

.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    animation: fadeIn 0.4s ease;
    padding: 40px 20px; /* Added padding */
}

.modal-content {
    background: var(--white);
    border-radius: 25px;
    max-width: 600px;
    width: 100%;
    max-height: none; /* Remove max-height */
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
    margin: auto; /* Center vertically */
    display: flex;
    flex-direction: column;
}

.quote-header {
    background: linear-gradient(135deg, #F59E20 0%, #e88c0d 50%, #d17a00 100%);
    color: var(--white);
    padding: 50px 40px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
    flex-shrink: 0; /* Prevent shrinking */
}

.quote-form {
    padding: 40px;
    background: var(--white);
    border-radius: 0 0 25px 25px;
    flex-shrink: 0; /* Prevent shrinking */
}

/* Remove scrolling from form */
.quote-form {
    overflow: visible;
    max-height: none;
}

/* Form wrapper with scrolling if needed */
.quote-form-wrapper {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 5px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group:last-of-type {
    margin-bottom: 20px;
}

.btn-full {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 18px 30px;
    background: linear-gradient(135deg, #F59E20 0%, #e88c0d 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(245, 158, 32, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.btn-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-full:hover::before {
    left: 100%;
}

.btn-full:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 158, 32, 0.5);
    background: linear-gradient(135deg, #e88c0d 0%, #d17a00 100%);
}

.btn-full i {
    font-size: 1.3rem;
    animation: whatsappPulse 1.5s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .modal.active {
        padding: 20px 10px;
        align-items: flex-start;
    }
    
    .modal-content {
        border-radius: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .quote-header {
        padding: 40px 25px 30px;
        border-radius: 20px 20px 0 0;
    }
    
    .quote-form {
        padding: 30px 25px;
        border-radius: 0 0 20px 20px;
    }
    
    .btn-full {
        padding: 16px 25px;
        font-size: 1rem;
    }
}

/* Ensure modal is scrollable on small screens */
@media (max-height: 700px) {
    .modal.active {
        align-items: flex-start;
    }
    
    .modal-content {
        margin: 20px auto;
    }
    
    .quote-header {
        padding: 35px 30px 25px;
    }
    
    .quote-form {
        padding: 30px;
    }
}

/* ==================== SIMPLE CLOSE BUTTON ==================== */

.close {
    position: fixed; /* Changed from absolute to fixed */
    top: calc(50% - 45vh); /* Position relative to modal */
    right: calc(50% - 300px + 15px); /* Adjust based on modal width */
    width: 45px;
    height: 45px;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.6);
    border: 3px solid var(--white);
}

.close:hover {
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 6px 25px rgba(255, 71, 87, 0.8);
}

.close::before,
.close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

.close::before {
    transform: rotate(45deg);
}

.close::after {
    transform: rotate(-45deg);
}

/* Responsive */
@media (max-width: 600px) {
    .close {
        position: absolute;
        top: 15px;
        right: 15px;
    }
}
