/**
 * Somerset Place Society - Enhanced CTA & Lifestyle Styles
 * Optimized for mobile, SEO, and conversions
 */

/* ===========================
   1. FLOATING CTA BAR
   =========================== */

.somerset-floating-cta-bar {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #515e4a 0%, #2d3934 100%);
    z-index: 998;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transition: bottom 0.3s ease;
    padding: 12px 0;
}

.somerset-floating-cta-bar.show {
    bottom: 0;
}

.cta-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    flex-wrap: wrap;
    gap: 5px;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background-color: #79e020;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.cta-btn:hover {
    background-color: #5fb51b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 224, 32, 0.3);
}

.cta-btn i {
    font-size: 16px;
}

.cta-label {
    display: inline;
}

/* Mobile: Stack buttons */
@media (max-width: 768px) {
    .cta-container {
        justify-content: space-between;
        gap: 3px;
    }

    .cta-btn {
        padding: 10px 12px;
        font-size: 11px;
        min-width: auto;
        flex: 1;
    }

    .cta-label {
        display: none;
    }

    .cta-btn i {
        font-size: 18px;
    }
}

/* CTA Button Variants */
.cta-call {
    background-color: #c6390e;
}

.cta-call:hover {
    background-color: #a01f05;
}

.cta-whatsapp {
    background-color: #25d366;
}

.cta-whatsapp:hover {
    background-color: #1ba652;
}

.cta-enquiry {
    background-color: #515e4a;
    border-color: #79e020;
    border-width: 2px;
}

.cta-enquiry:hover {
    background-color: #79e020;
    color: #515e4a;
}

.cta-location {
    background-color: #f39c12;
}

.cta-location:hover {
    background-color: #d68910;
}

/* ===========================
   2. ENQUIRY MODAL
   =========================== */

.somerset-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.somerset-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.somerset-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.somerset-modal-content h2 {
    color: #515e4a;
    margin-bottom: 10px;
    font-size: 24px;
}

.somerset-modal-content p {
    color: #8c9597;
    margin-bottom: 20px;
    font-size: 14px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #8c9597;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #515e4a;
}

/* ===========================
   3. FORM STYLES
   =========================== */

.somerset-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #79e020;
    box-shadow: 0 0 0 3px rgba(121, 224, 32, 0.1);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #545454;
    font-size: 13px;
    cursor: pointer;
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cta-submit {
    padding: 14px 20px;
    background-color: #79e020;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.cta-submit:hover {
    background-color: #5fb51b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 224, 32, 0.3);
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

/* ===========================
   4. REVIEWS WIDGET
   =========================== */

.somerset-reviews-widget {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    border-left: 4px solid #79e020;
}

.reviews-header {
    text-align: center;
    margin-bottom: 25px;
}

.reviews-header h3 {
    color: #515e4a;
    font-size: 22px;
    margin: 0 0 15px 0;
}

.rating-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.stars {
    font-size: 20px;
    color: #ffc107;
    letter-spacing: 2px;
}

.rating-value {
    font-weight: 700;
    color: #515e4a;
    font-size: 18px;
}

.review-count {
    color: #8c9597;
    font-size: 14px;
}

.reviews-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-read-reviews,
.btn-leave-review {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-read-reviews {
    background-color: #79e020;
    color: #fff;
}

.btn-read-reviews:hover {
    background-color: #5fb51b;
    transform: translateY(-2px);
}

.btn-leave-review {
    background-color: #ffc107;
    color: #333;
    border: 2px solid #ffc107;
}

.btn-leave-review:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

/* ===========================
   5. LIFESTYLE HIGHLIGHTS
   =========================== */

.somerset-lifestyle-highlights {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    margin: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #515e4a;
    margin-bottom: 40px;
    font-weight: 700;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #79e020;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.highlight-card i {
    font-size: 40px;
    color: #79e020;
    margin-bottom: 15px;
    display: block;
}

.highlight-card h4 {
    color: #515e4a;
    font-size: 18px;
    margin: 15px 0;
    font-weight: 700;
}

.highlight-card p {
    color: #8c9597;
    font-size: 14px;
    line-height: 1.6;
}

/* ===========================
   6. FAQ ACCORDION
   =========================== */

.somerset-faq-section {
    background: #fff;
    padding: 60px 0;
    margin: 40px 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-weight: 600;
    color: #515e4a;
    font-size: 16px;
    transition: all 0.3s;
}

.faq-question:hover {
    background-color: #f0f0f0;
    color: #79e020;
}

.faq-question i {
    transition: transform 0.3s;
    color: #79e020;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    color: #8c9597;
    line-height: 1.6;
    margin: 0;
}

.faq-answer a {
    color: #79e020;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ===========================
   7. RESPONSIVE ADJUSTMENTS
   =========================== */

@media (max-width: 768px) {
    .somerset-modal-content {
        padding: 25px;
    }

    .somerset-modal-content h2 {
        font-size: 20px;
    }

    .somerset-reviews-widget {
        padding: 20px;
    }

    .reviews-cta {
        flex-direction: column;
    }

    .btn-read-reviews,
    .btn-leave-review {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 24px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .highlight-card {
        padding: 20px;
    }
}

/* ===========================
   8. ACCESSIBILITY
   =========================== */

.somerset-floating-cta-bar:focus-within {
    box-shadow: 0 -2px 15px rgba(121, 224, 32, 0.4);
}

.cta-btn:focus {
    outline: 2px solid #79e020;
    outline-offset: 2px;
}

.faq-question:focus {
    outline: 2px solid #79e020;
    outline-offset: 0;
}

/* ===========================
   9. ANIMATION & TRANSITIONS
   =========================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.highlight-card {
    animation: slideInUp 0.5s ease forwards;
}

.highlight-card:nth-child(2) {
    animation-delay: 0.1s;
}

.highlight-card:nth-child(3) {
    animation-delay: 0.2s;
}

.highlight-card:nth-child(4) {
    animation-delay: 0.3s;
}
