﻿/* Page-specific styles extracted from index.html */

/* Product carousel card styles */
.product-card-image-wrap {
    cursor: pointer;
}

.product-card-link {
    display: block;
    text-decoration: none;
}

.product-card-image {
    width: 100%;
    display: block;
}

/* Utility classes replacing inline style attributes */
.feature-icon-image {
    width: 64px;
    height: auto;
    display: inline-block;
}

.edge-height-30 {
    height: 30px;
}

.certificate-image-auto {
    height: auto;
}

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

/* Certifications section responsive tweaks */
@media (max-width: 768px) {
    .row > .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .row > .col-lg-4,
    .row > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .container.mt-5 {
        padding: 0 15px;
    }
}

/* Testimonial section tweaks */
.icofont-quote-left {
    color: #190087 !important;
}

@media (max-width: 767px) {
    .carousel-wrapper-with-nav {
        position: relative;
        overflow: hidden;
    }

    #testimonial-carousel {
        padding: 0 10px;
        overflow: visible;
    }

    #testimonial-carousel .item {
        padding: 0 5px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden;
    }

    #testimonial-carousel .bg-white {
        margin-bottom: 0;
        padding: 20px 20px 20px 20px !important;
        border-radius: 12px !important;
        flex-shrink: 0;
        overflow: hidden;
    }

    #testimonial-carousel .icofont-quote-left {
        display: none !important;
    }

    #testimonial-carousel .ps-5 {
        padding-left: 0 !important;
    }

    #testimonial-carousel .d-flex {
        margin-top: 15px !important;
        align-items: flex-start !important;
        flex-direction: column !important;
        padding-top: 10px !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: hidden;
    }

    #testimonial-carousel .d-flex .mt-2 {
        margin-top: 0 !important;
        width: 100% !important;
        padding-bottom: 20px;
        overflow: hidden;
    }

    #testimonial-carousel p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 0;
        color: #666 !important;
    }

    #testimonial-carousel .text-dark {
        font-size: 15px !important;
        font-weight: 700 !important;
        margin-bottom: 8px !important;
        display: block !important;
        margin-top: 0 !important;
        line-height: 1.3 !important;
        width: 100% !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #testimonial-carousel small {
        font-size: 11px !important;
        display: block !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
        color: #888 !important;
        width: 100% !important;
        overflow: visible;
        white-space: normal;
    }

    .carousel-nav-btn {
        width: 40px !important;
        height: 40px !important;
        z-index: 10;
    }
}

/* Quote modal */
.quote-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.quote-modal-overlay.active {
    display: flex;
}

.quote-modal-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.quote-modal-close {
    position: absolute;
    top: 15px;
    left: 20px;
    background-color: #190087;
    color: #ffffff;
    border: none;
    width: 45px;
    height: 45px;
    font-size: 30px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
}

.quote-modal-close:hover {
    background-color: #009593;
    transform: scale(1.05);
}

.quote-modal-inner {
    padding-top: 20px;
}

.quote-modal-title {
    color: #190087;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

.quote-form-group {
    margin-bottom: 20px;
}

.quote-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.quote-form-group input,
.quote-form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #190087;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
    border-radius: 4px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.quote-form-group input::placeholder,
.quote-form-group textarea::placeholder {
    color: #999999;
}

.quote-form-group input:focus,
.quote-form-group textarea:focus {
    outline: none;
    border-color: #190087;
    background-color: #f0fffe;
    box-shadow: 0 0 0 3px rgba(0, 183, 181, 0.1);
}

.quote-modal-btn {
    width: 100%;
    padding: 15px;
    background-color: #190087;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quote-modal-btn:hover {
    background-color: #009593;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 183, 181, 0.3);
}

@media (max-width: 768px) {
    .quote-modal-content {
        padding: 30px 20px;
    }

    .quote-form-row {
        grid-template-columns: 1fr;
    }

    .quote-modal-title {
        font-size: 24px;
    }
}

/* Customer care widget + modal */
.customer-care-widget {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.customer-care-toggle {
    background: linear-gradient(135deg, #190087 0%, #4c4fff 100%);
    padding: 20px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 70px;
    text-align: center;
}

.customer-care-toggle:hover {
    padding-left: 16px;
    padding-right: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.care-text {
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
    margin-bottom: 12px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.care-icon {
    width: 45px;
    height: 45px;
    background: #00B74F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    transition: all 0.3s ease;
}

.customer-care-toggle:hover .care-icon {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 183, 79, 0.4);
}

.customer-care-toggle.active .care-icon {
    transform: scale(1.05);
}

.customer-care-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.customer-care-modal.active {
    pointer-events: auto;
}

.customer-care-modal.active .customer-care-modal-content {
    animation: slideInLeft 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.customer-care-modal-content {
    animation: slideOutLeft 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

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

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

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

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

.customer-care-modal-content {
    background: linear-gradient(135deg, #190087 0%, #4c4fff 100%);
    padding: 0;
    border-radius: 0 12px 12px 0;
    width: 550px;
    max-width: 90vw;
    position: relative;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
    display: flex;
}

.customer-care-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: #1EBE6F;
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-care-close:hover {
    background: #190087;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 183, 181, 0.4);
}

.customer-care-modal-body {
    padding: 0;
    width: 100%;
}

.care-modal-text {
    display: flex;
    width: 100%;
    height: 100%;
}

.care-vertical-text {
    color: white;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    line-height: 1.8;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.care-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.care-modal-text p {
    color: white;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-style: italic;
}

.care-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info {
    display: flex;
    align-items: center;
    color: white;
    font-size: 14px;
    gap: 12px;
}

.contact-info i {
    color: white;
    font-size: 16px;
    min-width: 20px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* Center-align footer copyright across all screen sizes */
.subfooter .de-flex {
    justify-content: center;
}

.subfooter .de-flex-col {
    width: 100%;
    justify-content: center;
    text-align: center;
}

@media (max-width: 768px) {
    .customer-care-toggle {
        padding: 15px 10px;
        min-width: 65px;
    }

    .care-text {
        font-size: 9px;
    }

    .care-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .customer-care-modal-content {
        width: 95%;
    }

    .care-content {
        padding: 20px;
    }

    .care-modal-text p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .customer-care-toggle {
        padding: 12px 8px;
        min-width: 60px;
    }

    .care-text {
        font-size: 8px;
    }

    .care-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .customer-care-modal-content {
        width: 96%;
    }

    .care-vertical-text {
        min-width: 50px;
        padding: 20px 12px;
    }

    .care-content {
        padding: 20px 15px;
    }

    .customer-care-close {
        right: 12px;
        top: 12px;
        font-size: 24px;
    }

    .care-modal-text p {
        font-size: 12px;
    }
}
