/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Heebo', sans-serif;
    direction: rtl;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* LTR support for Russian version */
html[dir="ltr"] body {
    direction: ltr;
}

html[dir="ltr"] .header-wrapper {
    flex-direction: row-reverse;
}

html[dir="ltr"] .header-left {
    order: 3;
}

html[dir="ltr"] .header-center {
    order: 2;
}

html[dir="ltr"] .header-right {
    order: 1;
}

html[dir="ltr"] .language-flag {
    margin-left: 0;
    margin-right: 10px;
}

html[dir="ltr"] .service-item {
    flex-direction: row;
}

html[dir="ltr"] .addition-item {
    flex-direction: row;
}

html[dir="ltr"] .breakdown-item {
    flex-direction: row;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.08);
    width: 100%;
}

@media (max-width: 900px) {
    .container {
        max-width: 100%;
        box-shadow: none;
    }
}

/* Header */
.main-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

@media (max-width: 900px) {
    .main-header {
        width: 100%;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    flex-wrap: nowrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.language-flag {
    display: flex;
    align-items: center;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.language-flag:hover {
    transform: scale(1.1);
}

.flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    object-fit: cover;
}

.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover:not(.social-icon-whatsapp):not(.social-icon-instagram):not(.social-icon-facebook):not(.social-icon-youtube) {
    background: #E94E77;
    color: white;
    transform: translateY(-2px);
}

.social-icon-instagram {
    background: #000000 !important;
    color: white !important;
}

.social-icon-instagram:hover {
    background: #000000 !important;
    color: white !important;
    transform: translateY(-2px);
}

/* WhatsApp icon - must be green always */
a.social-icon.social-icon-whatsapp,
.social-icon.social-icon-whatsapp,
.social-icons .social-icon.social-icon-whatsapp {
    background: #25D366 !important;
    color: white !important;
    border-radius: 50% !important;
}

a.social-icon.social-icon-whatsapp:hover,
.social-icon.social-icon-whatsapp:hover,
.social-icons .social-icon.social-icon-whatsapp:hover,
a.social-icon.social-icon-whatsapp:focus,
.social-icon.social-icon-whatsapp:focus,
.social-icons .social-icon.social-icon-whatsapp:focus {
    background: #25D366 !important;
    color: white !important;
    border-radius: 50% !important;
    transform: translateY(-2px);
}

.social-icon-facebook {
    background: #0d5bd8 !important;
    color: white !important;
}

.social-icon-facebook:hover {
    background: #0d5bd8 !important;
    color: white !important;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.phone-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    background: #f5f5f5;
    border: 1px solid #E94E77;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.phone-icon:hover {
    background: #E94E77;
    color: white;
    border: 1px solid #E94E77;
}

.phone-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.phone-number {
    font-size: 0.95rem;
}

.logo-link {
    display: inline-block;
    line-height: 0;
    margin: 0 30px;
}

.header-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.header-title {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}

/* Service Buttons */
.service-buttons-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: url('img/red_bg.png') center center / cover no-repeat;
    border-bottom: 1px solid #f0f0f0;
}

@media (max-width: 900px) {
    .service-buttons-wrapper {
        width: 100%;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }
}

.service-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.service-btn:hover {
    transform: translateY(-2px);
}

.service-btn.active {
    background: rgba(255, 255, 255, 1);
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-btn .icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.service-btn .text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Main Content */
main {
    padding: 20px;
}

@media (max-width: 768px) {
    main {
        padding: 15px;
    }
}

/* Service Details */
.service-detail {
    display: none;
}

.service-detail.active {
    display: block;
}

.service-detail h3 {
    color: #E94E77;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: bold;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.service-item:last-child {
    border-bottom: none;
}

.item-label {
    font-weight: normal;
    color: #E94E77;
}

.item-price {
    font-weight: normal;
    color: black;
}

.item-description {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #f0f0f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s;
    color: #333;
}

.qty-btn:hover:not(:disabled) {
    background: #fff5f7;
    border-color: #E94E77;
    color: #E94E77;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
}

.word-input {
    padding: 8px 12px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    width: 100px;
    text-align: center;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.word-input:focus {
    outline: none;
    border-color: #E94E77;
}

.pricing-info {
    background: #fff5f7;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid #ffe0e6;
}

.pricing-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #666;
}

.service-note {
    font-weight: normal;
    margin: 15px 0 10px 0;
    color: black;
}

/* General Additions */
.general-additions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.general-additions h3 {
    color: #E94E77;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: bold;
}

.lightning {
    margin-left: 8px;
}

.addition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.addition-item:last-child {
    border-bottom: none;
}

.addition-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.addition-label {
    font-weight: normal;
    color: #E94E77;
}

.addition-price {
    font-weight: normal;
    color: black;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #E94E77;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.office-visit-controls {
    margin-top: 15px;
    padding: 15px;
    background: #fff5f7;
    border-radius: 12px;
    border: 1px solid #ffe0e6;
}

/* Disclaimer */
.disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}

.disclaimer p {
    color: #856404;
    font-size: 0.9rem;
    margin: 0;
}

/* Total Section */
.total-section {
    background: rgba(233, 78, 119, 0.3);
    color: black;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: none;
    position: relative;
    overflow: hidden;
}

.total-section::before {
    display: none;
}

.total-breakdown {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item.total {
    font-size: 1.2rem;
    font-weight: bold;
    border-top: 2px solid rgba(0,0,0,0.3);
    padding-top: 15px;
    margin-top: 10px;
    color: black;
}

.breakdown-label {
    font-weight: 500;
}

.breakdown-amount {
    font-weight: bold;
}

/* Footer */
footer.footer-wrapper {
    background: url('img/red_bg.png') center center / cover no-repeat;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

@media (max-width: 900px) {
    footer.footer-wrapper {
        width: 100%;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 20px;
}

.footer-content .social-links .social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Ensure WhatsApp icon is green in footer too */
.footer-content .social-links .social-icons .social-icon.social-icon-whatsapp,
.footer-content .social-links .social-icons a.social-icon.social-icon-whatsapp {
    background: #25D366 !important;
    color: white !important;
    border-radius: 50% !important;
}

.footer-content .social-links .social-icons .social-icon.social-icon-whatsapp:hover,
.footer-content .social-links .social-icons a.social-icon.social-icon-whatsapp:hover {
    background: #25D366 !important;
    color: white !important;
    border-radius: 50% !important;
    transform: translateY(-2px);
}

.footer-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.contact-info a, .social-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.contact-info a:hover, .social-links a:hover {
    opacity: 0.8;
}


.copyright {
    font-size: 0.8rem;
    color: white;
    opacity: 0.9;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
    }

    .header-wrapper {
        flex-wrap: wrap;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .header-left {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .header-center {
        order: 2;
        width: 100%;
    }

    .header-right {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .header-title {
        font-size: 1.2rem;
    }

    .header-logo {
        height: 70px;
    }

    .logo-link {
        margin: 0 10px;
    }

    .social-icon, .phone-icon {
        font-size: 0.85rem;
    }

    .phone-number {
        font-size: 0.85rem;
    }

    .service-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        padding: 15px;
        padding-left: 15px;
        padding-right: 15px;
        gap: 8px;
    }

    .service-btn {
        padding: 12px 8px;
    }

    .service-btn .text {
        font-size: 0.75rem;
    }

    .service-detail h3 {
        font-size: 1.1rem;
    }

    .general-additions h3 {
        font-size: 1.1rem;
    }

    .service-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .item-label {
        font-size: 0.9rem;
    }

    .item-price {
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
    }

    .footer-container {
        padding: 20px 15px;
    }

    .total-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .total-breakdown {
        max-width: 100%;
    }

    .breakdown-item {
        font-size: 0.9rem;
    }

    .breakdown-item.total {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 8px 0;
    }

    .header-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }

    .header-title {
        font-size: 1rem;
    }

    .header-logo {
        height: 60px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    /* Ensure WhatsApp stays green on mobile */
    .social-icon.social-icon-whatsapp,
    a.social-icon.social-icon-whatsapp {
        background: #25D366 !important;
        color: white !important;
        border-radius: 50% !important;
    }

    .social-icon svg {
        width: 16px;
        height: 16px;
    }

    .phone-icon {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .phone-icon svg {
        width: 16px;
        height: 16px;
    }

    .service-buttons {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
        padding-left: 10px;
        padding-right: 10px;
        gap: 6px;
    }

    .service-btn {
        padding: 10px 6px;
    }

    .service-btn .text {
        font-size: 0.7rem;
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 0;
    }

    .item-label, .item-price {
        font-size: 0.85rem;
    }

    .addition-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 0;
    }

    .addition-label, .addition-price {
        font-size: 0.85rem;
    }

    .general-additions {
        margin-top: 20px;
        padding-top: 15px;
    }

    .breakdown-item {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 8px 0;
    }

    .breakdown-item.total {
        font-size: 1rem;
    }

    .total-section {
        padding: 12px;
        margin-bottom: 12px;
    }

    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .word-input {
        width: 80px;
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    main {
        padding: 10px;
    }

    .footer-container {
        padding: 15px 10px;
    }

    .footer-info p, .contact-info a, .social-links a {
        font-size: 0.85rem;
    }

    .copyright {
        font-size: 0.75rem;
    }
}