/* ==========================================================================
   Elementor Custom Widgets Stylesheet
   ========================================================================== */

/* Fade-in Animation for Tabs switching */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* --------------------------------------------------------------------------
   1. Info Bar Widget
   -------------------------------------------------------------------------- */
.chomo-info-bar-container {
    background-color: var(--color-primary);
    border-radius: var(--border-radius-md);
    width: 100%;
    transition: all 0.3s ease;
}

.chomo-info-bar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 24px 30px;
}

.info-item-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

a.info-item-wrap:hover {
    transform: translateY(-2px);
}

.info-item-icon {
    font-size: 26px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item-content {
    display: flex;
    flex-direction: column;
}

.info-item-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 2px;
}

.info-item-text {
    font-size: 14px;
    color: #ffffff;
    opacity: 0.95;
    line-height: 1.4;
}

.info-item-text a {
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   2. Icon Feature Card Widget
   -------------------------------------------------------------------------- */
.chomo-feature-card {
    text-align: center;
    padding: 40px 30px;
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chomo-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.feature-card-icon-wrap {
    display: inline-flex;
    margin-bottom: 24px;
}

.feature-card-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    border: 2px dashed var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.chomo-feature-card:hover .feature-card-icon {
    transform: rotate(360deg);
}

.feature-card-icon svg {
    width: 38px;
    height: 38px;
}

.feature-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.feature-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-body);
    margin: 0;
}

/* --------------------------------------------------------------------------
   3. Signature Dishes Slider
   -------------------------------------------------------------------------- */
.chomo-signature-slider-container {
    position: relative;
    width: 100%;
}

.signature-dish-card {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    margin: 10px 5px;
}

.signature-dish-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.dish-card-img-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.dish-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.diet-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: var(--border-radius-pill);
    color: #ffffff;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.diet-badge-veg {
    background-color: #2e7d32;
}

.diet-badge-non_veg {
    background-color: #d32f2f;
}

.dish-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.dish-card-meta-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
    margin-top: 12px;
}

.dish-card-price {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

.dish-card-rating {
    display: flex;
    gap: 1px;
}

.dish-card-rating span {
    font-size: 14px;
    color: var(--color-star);
    width: 14px;
    height: 14px;
}

/* Slider Custom Navigation controls */
.slider-controls-wrap {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.slider-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.slider-nav-btn span,
.slider-nav-btn svg {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.slider-nav-btn:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   4. Filterable Menu Tabs Widget
   -------------------------------------------------------------------------- */
.chomo-menu-tabs-wrapper {
    width: 100%;
}

.menu-tabs-header {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.menu-tab-btn {
    background-color: transparent;
    border: 1px solid var(--color-border);
    padding: 8px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--border-radius-pill);
    color: var(--color-text-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab-btn:hover,
.menu-tab-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.menu-grid-panel {
    display: none;
}

.menu-grid-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.menu-items-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
}

.menu-dish-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.dish-item-img-wrap {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    border: 2px solid #ffffff;
}

.dish-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.diet-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
}

.diet-dot-veg {
    background-color: #2e7d32;
}

.diet-dot-non_veg {
    background-color: #d32f2f;
}

.dish-item-details {
    flex-grow: 1;
}

.dish-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 6px;
}

.dish-item-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--color-text-dark);
    flex-shrink: 0;
}

.dish-item-dot-spacer {
    flex-grow: 1;
    border-bottom: 2px dotted var(--color-border);
    margin: 0 10px;
    align-self: flex-end;
    margin-bottom: 4px;
}

.dish-item-price {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
}

.dish-item-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-light);
}

.dish-item-desc p {
    margin: 0;
}

@media screen and (max-width: 480px) {
    .dish-item-header {
        flex-direction: column;
        gap: 10px;
    }

    .dish-item-dot-spacer {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   5. Google Reviews Widget
   -------------------------------------------------------------------------- */
.chomo-google-reviews-wrapper {
    width: 100%;
}

.google-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-bg-cream);
    border: 1px solid var(--color-border);
    padding: 20px 24px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 15px;
}

.header-logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.google-badge-g {
    flex-shrink: 0;
}

.reviews-header-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-text-dark);
}

.header-stars-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-number {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-dark);
}

.rating-stars {
    display: flex;
    color: var(--color-star);
    gap: 2px;
}

.rating-stars span {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.rating-total {
    font-size: 14px;
    color: var(--color-text-light);
}

/* Google Reviews layouts (Grid and Slider) */
.google-reviews-grid {
    display: grid;
    gap: 30px;
}

.google-reviews-grid.cols-1 {
    grid-template-columns: 1fr;
}

.google-reviews-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.google-reviews-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.google-reviews-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.google-review-card {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.google-review-card:hover {
    transform: translateY(-5px);
}

/* Glowing Border designs matching Mockup */
.google-review-card.glow-purple {
    /* border-bottom: 4px solid #7c4dff; */
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.05);
}

.google-review-card.glow-purple:hover {
    box-shadow: 0 15px 35px rgba(124, 77, 255, 0.12);
}

.google-review-card.glow-orange {
    /* border-bottom: 4px solid #ff8f00; */
    box-shadow: 0 4px 15px rgba(255, 143, 0, 0.05);
}

.google-review-card.glow-orange:hover {
    box-shadow: 0 15px 35px rgba(255, 143, 0, 0.12);
}

.google-review-card.glow-cyan {
    /* border-bottom: 4px solid #00b8d4; */
    box-shadow: 0 4px 15px rgba(0, 184, 212, 0.05);
}

.google-review-card.glow-cyan:hover {
    box-shadow: 0 15px 35px rgba(0, 184, 212, 0.12);
}

.review-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    width: 100%;
}

.review-card-avatar-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

.review-card-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card-avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
}

.review-card-meta {
    display: flex;
    flex-direction: column;
}

.review-card-author-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text-dark);
}

.review-card-date {
    font-size: 12px;
    color: var(--color-text-light);
}

.review-card-brand-logo {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.review-card-stars {
    color: var(--color-star);
    margin-bottom: 14px;
    display: flex;
    gap: 2px;
}

.review-card-stars span {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.review-card-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-body);
    margin: 0;
    font-style: italic;
    flex-grow: 1;
}

/* Reviews Slider layout (Carousel) */
.google-reviews-slider {
    padding: 10px 5px 35px;
}

.reviews-slider-pagination {
    bottom: 0 !important;
}

.reviews-slider-pagination .swiper-pagination-bullet-active {
    background-color: var(--color-primary) !important;
}

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */

@media (max-width: 991px) {
    .menu-items-grid-2col {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .google-reviews-grid.cols-3,
    .google-reviews-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .chomo-info-bar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .info-item-wrap {
        justify-content: flex-start;
    }

    .google-reviews-grid.cols-2,
    .google-reviews-grid.cols-3,
    .google-reviews-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .google-reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* --------------------------------------------------------------------------
   6. Cuisine CTA Button Widget
   -------------------------------------------------------------------------- */
.chomo-button-wrapper {
    width: 100%;
}

.chomo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    cursor: pointer;
    border: none;
    outline: none;
}

.chomo-btn.chomo-btn-with-text {
    padding: 8px 8px 8px 30px;
    min-height: 54px;
}

.chomo-btn.chomo-btn-with-text.icon-position-left {
    padding: 8px 30px 8px 8px;
}

.chomo-btn.chomo-btn-icon-only {
    padding: 0;
    width: 54px;
    height: 54px;
    border-radius: 50% !important;
}

.chomo-btn-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    transition: color 0.3s ease;
}

.chomo-btn.icon-position-right .chomo-btn-text {
    margin-right: 18px;
}

.chomo-btn.icon-position-left .chomo-btn-text {
    margin-left: 18px;
}

.chomo-btn-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
}

.chomo-btn.chomo-btn-icon-only .chomo-btn-icon-circle {
    width: 100% !important;
    height: 100% !important;
}

.chomo-btn-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* Hover Animations */
.chomo-btn.anim-translate:hover .icon-circle-right .chomo-btn-icon-wrap {
    transform: translateX(4px);
}

.chomo-btn.anim-translate:hover .icon-circle-left .chomo-btn-icon-wrap {
    transform: translateX(-4px);
}

.chomo-btn.anim-scale:hover .chomo-btn-icon-circle {
    transform: scale(1.1);
}

.chomo-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   7. Cuisine Blockquote Widget
   -------------------------------------------------------------------------- */
.chomo-blockquote-wrapper {
    width: 100%;
}

.chomo-blockquote {
    margin: 0;
    padding: 0 0 0 24px;
    border-left: 4px solid var(--color-primary);
    border-top: none;
    border-right: none;
    border-bottom: none;
    display: flex;
    align-items: flex-start;
    max-width: 100%;
    transition: border-color 0.3s ease, border-width 0.3s ease, padding-left 0.3s ease;
}

.chomo-blockquote-icon {
    flex-shrink: 0;
    margin-right: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    padding-top: 4px;
    /* Align slightly down to match the first line text baseline */
    transition: margin-right 0.3s ease;
}

.chomo-blockquote-icon svg {
    display: block;
    width: 16px;
    height: 18px;
}

.chomo-blockquote-content {
    flex-grow: 1;
}

.chomo-blockquote-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text-body);
    font-style: italic;
    margin: 0;
    transition: color 0.3s ease;
}

.chomo-blockquote-author {
    display: block;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    font-style: normal;
    margin-top: 12px;
    transition: color 0.3s ease, margin-top 0.3s ease;
}

/* --------------------------------------------------------------------------
   8. Cuisine Contact Form Widget
   -------------------------------------------------------------------------- */
.chomo-contact-form-wrap {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    padding: 40px;
    width: 100%;
}

.chomo-cf7-grid {
    display: flex;
    flex-direction: column;
}

.chomo-cf7-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.chomo-cf7-row.full-width {
    grid-template-columns: 1fr;
}

.chomo-cf7-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chomo-cf7-col label {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 2px;
}

.chomo-cf7-col input[type="text"],
.chomo-cf7-col input[type="email"],
.chomo-cf7-col input[type="tel"],
.chomo-cf7-col textarea {
    width: 100%;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.chomo-cf7-col input[type="text"]::placeholder,
.chomo-cf7-col input[type="email"]::placeholder,
.chomo-cf7-col input[type="tel"]::placeholder,
.chomo-cf7-col textarea::placeholder {
    color: var(--color-text-light);
    opacity: 0.8;
}

.chomo-cf7-col input[type="text"]:focus,
.chomo-cf7-col input[type="email"]:focus,
.chomo-cf7-col input[type="tel"]:focus,
.chomo-cf7-col textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.chomo-cf7-col textarea {
    min-height: 150px;
    resize: vertical;
}

.chomo-cf7-submit-wrap {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Contact Form 7 standard styling overrides to match our design system */
.chomo-cf7-submit-wrap button.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    border: none;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    padding: 8px 8px 8px 30px;
    min-height: 54px;
    outline: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
}

.chomo-cf7-submit-wrap button.wpcf7-submit:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.chomo-cf7-submit-wrap button.wpcf7-submit .chomo-btn-text {
    margin-right: 18px;
    color: var(--color-bg-white);
}

.chomo-cf7-submit-wrap button.wpcf7-submit .chomo-btn-icon-circle {
    width: 38px;
    height: 38px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.chomo-cf7-submit-wrap button.wpcf7-submit .chomo-btn-icon-circle i {
    color: var(--color-primary);
    font-size: 14px;
}

.chomo-cf7-submit-wrap button.wpcf7-submit:hover .chomo-btn-icon-circle i {
    color: var(--color-primary-hover);
}

.chomo-cf7-submit-wrap button.wpcf7-submit.anim-translate:hover .chomo-btn-icon-wrap {
    transform: translateX(4px);
}

/* CF7 Validation & Alert boxes styling integration */
.wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 12px 20px !important;
    border-radius: var(--border-radius-md) !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.wpcf7-not-valid-tip {
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    color: #d32f2f !important;
    margin-top: 5px !important;
}

.wpcf7-mail-sent-ok {
    border: 2px solid #2e7d32 !important;
    background-color: #e8f5e9 !important;
    color: #2e7d32 !important;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    border: 2px solid #ef6c00 !important;
    background-color: #fff3e0 !important;
    color: #ef6c00 !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-spam {
    border: 2px solid #c62828 !important;
    background-color: #ffebee !important;
    color: #c62828 !important;
}

/* Responsive styles */
@media (max-width: 767px) {
    .chomo-cf7-row {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .chomo-contact-form-wrap {
        padding: 24px;
    }
}