﻿.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Equal height columns */
.row-eq-height {
    display: flex;
    flex-wrap: wrap;
}

.row-eq-height > [class*="col-"] {
    display: flex;
}

/* Mobile: full width */
/*.col-xs-12 {
    width: 100%;
    float: left;
}*/

/* Tablet and up: 2 columns */
@media (min-width: 768px) {
    .col-sm-6 {
        width: 50%;
        float: left;
    }
}

/* Desktop and up: 4 columns */
@media (min-width: 992px) {
    .col-sm-3 {
        width: 25%;
        float: left;
    }
}

/* Ensure service cards fill height */
.service-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Margin between cards on mobile */
@media (max-width: 767px) {
    .col-xs-12 {
        margin-bottom: 20px;
    }

    .col-xs-12:last-child {
        margin-bottom: 0;
    }
}

/* Margin between cards on tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .col-sm-6 {
        margin-bottom: 20px;
    }

    .col-sm-6:nth-last-child(-n+2) {
        margin-bottom: 0;
    }
}

/* ===================================================================
   IMAGE-BASED SERVICE CARDS (with overlay text and hover animation)
   =================================================================== */

.service-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .service-link:hover {
        transform: translateY(-5px);
    }
}

.service-box {
    width: 100%;
    height: 300px;
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .service-box:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    }
}

.box-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .service-box:hover .box-pic {
        transform: scale(1.05);
    }
}

.service-box .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    transition: background 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .service-box:hover .overlay {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    }
}

.service-heading {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff;
    font-size: 18px;
    text-align: center;
    transform: translate(-50%, -50%);
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    z-index: 2;
    padding: 0 20px;
    line-height: 1.4;
    transition: top 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .service-box:hover .service-heading {
        top: 35%;
    }
}

.service-subtext {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    line-height: 1.6;
}

@media (hover: hover) and (pointer: fine) {
    .service-box:hover .service-subtext {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Always show subtext on mobile/tablet */
@media (hover: none) or (pointer: coarse) {
    .service-subtext {
        transform: translateY(0);
        opacity: 1;
    }

    .service-heading {
        top: 35%;
    }
}

@media (max-width: 768px) {
    .service-box {
        height: 280px;
    }
}


/* ===================================================================
   ICON-BASED SERVICE CARDS (gradient icons with text below)
   =================================================================== */

.services-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.service-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Different gradient for each card using nth-child on the column */
.col-sm-2:nth-child(1) .service-icon,
.col-12:nth-child(1) .service-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.col-sm-2:nth-child(2) .service-icon,
.col-12:nth-child(2) .service-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.col-sm-2:nth-child(3) .service-icon,
.col-12:nth-child(3) .service-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.col-sm-2:nth-child(4) .service-icon,
.col-12:nth-child(4) .service-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.col-sm-2:nth-child(5) .service-icon,
.col-12:nth-child(5) .service-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.service-icon svg {
    width: 64px;
    height: 64px;
    color: #fff;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 2;
}

.service-icon::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.service-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
    text-align: center;
}

.service-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.cta-section {
    text-align: center;
    margin-top: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.cta-section h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: #fff;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    color: #764ba2;
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .service-icon {
        height: 120px;
    }

    .service-icon svg {
        width: 48px;
        height: 48px;
    }

    .cta-section h3 {
        font-size: 1.5rem;
    }
}

.input-field {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-field:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-field::placeholder {
    color: #6c757d;
    opacity: 1;
}

.input-field:disabled,
.input-field[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}

/* For textareas */
textarea.input-field {
    min-height: calc(1.5em + 1.5rem + 2px);
    resize: vertical;
}

/* For select dropdowns */
select.input-field {
    cursor: pointer;
}

select.input-field:focus::-ms-value {
    color: #495057;
    background-color: #fff;
}

/* Custom Modal */
.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    overflow: hidden;
}

.custom-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    display: none;
    flex-direction: column;
}

    .custom-modal.show {
        display: flex;
        animation: modalFadeIn 0.3s ease-out;
    }

.custom-modal-overlay.show {
    display: block;
    animation: overlayFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.custom-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.custom-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: #333;
}

.custom-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

    .custom-modal-close:hover {
        color: #333;
    }

.custom-modal-body {
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

    /* Custom scrollbar for modal body */
    .custom-modal-body::-webkit-scrollbar {
        width: 8px;
    }

    .custom-modal-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .custom-modal-body::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

        .custom-modal-body::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

.custom-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
    flex-shrink: 0;
}

.enquiry-alert {
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: none;
}

    .enquiry-alert.show {
        display: block;
    }

    .enquiry-alert.alert-success {
        background-color: #d4edda;
        border: 1px solid #c3e6cb;
        color: #155724;
    }

    .enquiry-alert.alert-danger {
        background-color: #f8d7da;
        border: 1px solid #f5c6cb;
        color: #721c24;
    }

.btn-submit {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .btn-submit:hover {
        background-color: #0056b3;
    }

    .btn-submit:disabled {
        background-color: #6c757d;
        cursor: not-allowed;
        opacity: 0.65;
    }

/* Form group spacing */
.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
        color: #333;
    }

/* reCAPTCHA spacing */
.g-recaptcha {
    margin: 15px 0;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .custom-modal {
        max-width: 95%;
        max-height: 95vh;
    }

    .custom-modal-header,
    .custom-modal-body,
    .custom-modal-footer {
        padding: 15px;
    }

    .custom-modal-title {
        font-size: 18px;
    }
}

/* Main MICE Cards Section */
.mice-cards-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.mice-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.mice-card-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* Alternate layout for even cards */
.mice-card:nth-child(even) .mice-card-inner {
    flex-direction: row-reverse;
}

.mice-image {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.mice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mice-card:hover .mice-image img {
    transform: scale(1.05);
}

.mice-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.mice-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mice-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.mice-content p {
    font-size: 14px;
    line-height: 27px;
    color: #393939;
    margin-bottom: 0;
}

/* Service Highlights Section */
.highlights-section {
    padding: 80px 0;
    background: white;
}

.highlights-title {
    text-align: center;
    margin-bottom: 60px;
}

.highlights-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.highlights-title p {
    font-size: 1.1rem;
    color: #666;
}

.highlight-card {
    background: white;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

    .highlight-card:hover {
        border-color: #667eea;
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    }

.highlight-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1);
}

.highlight-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.highlight-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.highlight-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

    .row > [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }

/*.col-xs-12 {
    width: 100%;
}*/

@media (min-width: 768px) {
    .col-sm-6 {
        width: 50%;
        float: left;
    }
}

@media (min-width: 992px) {
    .col-sm-3 {
        width: 25%;
        float: left;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .mice-hero h1 {
        font-size: 2rem;
    }

    .mice-hero .subtitle {
        font-size: 1.1rem;
    }

    .mice-card-inner,
    .mice-card:nth-child(even) .mice-card-inner {
        flex-direction: column;
    }

    .mice-image {
        flex: 0 0 250px;
        height: 250px;
    }

    .mice-content {
        padding: 30px 25px;
    }

    .mice-content h3 {
        font-size: 1.5rem;
    }

    .highlights-title h2 {
        font-size: 2rem;
    }

    .col-xs-12 {
        margin-bottom: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .col-sm-6 {
        margin-bottom: 20px;
    }
}