:root {
    --primary-green: #006400;
    --primary-orange: #FFA500;
    --primary-green-dark: #004d00;
    --primary-orange-dark: #cc8400;
    --primary-green-contrast: #008000;
    --primary-orange-contrast: #ff8c00;
}

@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/Ubuntu-Regular.woff2') format('woff2'),
       url('fonts/Ubuntu-Regular.woff') format('woff'),
       url('fonts/Ubuntu-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/Ubuntu-Bold.woff2') format('woff2'),
       url('fonts/Ubuntu-Bold.woff') format('woff'),
       url('fonts/Ubuntu-Bold.ttf') format('truetype');
}

.bg-sumtel-green {
    background-color: var(--primary-green);
}

.text-sumtel-green {
    color: var(--primary-green);
}

.bg-sumtel-orange {
    background-color: var(--primary-orange);
}

.text-sumtel-orange {
    color: var(--primary-orange);
}

body {
    font-family: 'Ubuntu', sans-serif;
    scroll-behavior: smooth;
}

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

.modal-content {
    background-color: white;
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    max-height: 80vh;
    min-height: 200px;
    overflow-y: auto;
    transform: translateY(0);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: var(--primary-green);
    cursor: pointer;
}

.tariff-slider {
    transition: transform 0.5s ease-in-out;
}

.tab-active {
    background-color: var(--primary-orange);
    color: white;
}

.tab-inactive {
    background-color: #e5e7eb;
    color: var(--primary-green);
}

.form-input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-select {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
}

.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: bold;
    color: var(--primary-green);
    font-size: 0.875rem;
}

.payform {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payform-row {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    background-color: white;
    color: black;
}

.payform-row:focus {
    outline: none;
    border-color: var(--primary-green);
}

.payform-row::placeholder {
    color: #a0aec0;
}

.payform-btn {
    background-color: var(--primary-orange);
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.payform-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.payform-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.address-suggestion:hover {
    background-color: #e5e7eb;
    color: black;
    cursor: pointer;
}

.mobile-menu {
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
}

.section-content {
    padding-left: 16px;
    padding-right: 16px;
}

.smart-captcha {
    height: 100px;
    margin-bottom: 1rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-green: var(--primary-green-dark);
        --primary-orange: var(--primary-orange-dark);
    }
}

@media (prefers-contrast: high) {
    :root {
        --primary-green: var(--primary-green-contrast);
        --primary-orange: var(--primary-orange-contrast);
    }
}

@media (max-width: 640px) {
    .payform {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }

    .payform-row {
        width: 100%;
    }

    .payform-btn {
        width: 100%;
        padding: 10px;
    }

    .tariff-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .tariff-card {
        width: 100%;
        max-width: 300px;
    }

    .section-content {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (min-width: 641px) {
    .tariff-container {
        overflow-x: hidden;
        position: relative;
    }

    .tariff-card {
        min-width: 300px;
        max-width: 300px;
    }

    .tariff-nav-button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        padding: 12px;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        z-index: 10;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tariff-nav-button.prev {
        left: 50px;
    }

    .tariff-nav-button.next {
        right: 50px;
    }

    .tariff-nav-button:hover {
        background-color: rgba(0, 0, 0, 0.7);
    }
}

.swal2-popup {
    font-family: 'Ubuntu', sans-serif;
    background-color: #fff;
    color: var(--primary-green);
    border-radius: 8px;
}
.swal2-title {
    color: var(--primary-green);
    font-weight: bold;
}
.swal2-content {
    color: var(--primary-green);
}
.swal2-confirm {
    background-color: var(--primary-orange);
    color: white;
    border-radius: 4px;
    font-family: 'Ubuntu', sans-serif;
}
.swal2-confirm:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
.swal2-confirm:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.3);
}
.swal2-icon.swal2-error {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}
.swal2-icon.swal2-success {
    border-color: var(--primary-green);
    color: var(--primary-green);
}
