/* ==========================================================================
   Kedebah marketing theme – green / lime / gold / olive
   Primary: #2e6f36 | Accent: #edf124 | Gold: #fbbe17 | Olive: #7e973b
   ========================================================================== */
:root {
    /* Text */
    --ztc-text-text-1: #fff;
    --ztc-text-text-2: #090b0e;
    --ztc-text-text-3: #3d4c5e;
    --ztc-text-text-4: #7e973b;
    --ztc-text-text-5: #7e973b;
    --ztc-text-text-6: #2e6f36;
    --ztc-text-text-7: #e8f5e9;
    --ztc-text-text-8: #f6f8f9;
    --ztc-text-text-9: #f5f0e0;
    --ztc-text-text-10: #f6f8f9;
    --ztc-text-text-11: #edf124;
    --ztc-text-text-12: #0a2828;
    --ztc-text-text-13: #2e6f36;

    /* Backgrounds – no pink/purple; use green, lime, gold, olive */
    --ztc-bg-bg-1: #2e6f36;
    --ztc-bg-bg-2: #e8f5e9;
    --ztc-bg-bg-3: #c8e6c9;
    --ztc-bg-bg-4: #e8ebe3;
    --ztc-bg-bg-5: #2e6f36;
    --ztc-bg-bg-6: #e5f0c8;
    --ztc-bg-bg-7: #fef3d4;
    --ztc-bg-bg-8: #e8f5e9;
    --ztc-bg-bg-9: #f5f0e0;
    --ztc-bg-bg-10: #fbbe17;
    --ztc-bg-bg-11: #3a4d36;
    --ztc-bg-bg-12: #4a6b3a;
    --ztc-bg-bg-13: #eaffef;
    --ztc-bg-bg-14: #f8f6ef;
    --ztc-bg-bg-15: #f6f8f9;
    --ztc-bg-bg-16: #f6fff8;
    --ztc-bg-bg-17: #edf124;
    --ztc-bg-bg-18: #1a3d1f;
    --ztc-bg-bg-19: rgba(237, 241, 36, 0.1);
    --ztc-bg-bg-20: rgba(10, 40, 40, 0.1);
    --ztc-bg-bg-21: #fef3d4;
    --ztc-bg-bg-22: #e5f0c8;
    --ztc-bg-bg-23: #e8f5e9;
    --ztc-border-border-1: #e5e7eb;
    --ztc-border-border-2: #dfdcdc;
}

/* Inner page header (e.g. Contact Us, About) – theme gradient instead of purple */
.about-header-area {
    background-image: linear-gradient(
        135deg,
        var(--ztc-bg-bg-2) 0%,
        var(--ztc-bg-bg-14) 50%,
        var(--ztc-bg-bg-22) 100%
    ) !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
}
.about-header-area .about-inner-header h1 {
    color: var(--ztc-text-text-2);
}
.about-header-area .about-inner-header a {
    color: var(--ztc-text-text-3);
}
.about-header-area .about-inner-header a span {
    color: var(--ztc-text-text-2);
    font-weight: var(--ztc-weight-semibold);
}

/* Contact section: icon circles and View Map – theme green instead of purple */
.contact-main-inner-area .contact-header .number-address-area .phone-number .img1,
.contact-main-inner-area .contact-header .number-address-area2 .phone-number .img1 {
    background: var(--ztc-bg-bg-2);
}
.contact-main-inner-area .contact-header .number-address-area2 .phone-number .map {
    color: var(--ztc-text-text-6);
}

/* Location section (office cards): icon circles and View Our Map – theme green instead of purple */
.location-section-area .location-boxes .img1 {
    background: var(--ztc-bg-bg-2);
}
.location-section-area .map {
    color: var(--ztc-text-text-6);
}

/* Footer: social icon circles – use theme green instead of pink */
.footer4-section-area .footer-logo-area ul li a {
    background: var(--ztc-bg-bg-2);
    color: var(--ztc-text-text-6);
}

/* Footer: newsletter subscribe form – use theme background instead of pink */
.footer4-section-area .footer-logo-area3 form {
    background: var(--ztc-bg-bg-14);
}

.text-balance {
    text-wrap: balance;
}

/* Hero testimonial: to the right of center image (img1), on top, never behind */
.hero4-section-area .header-images-area .content {
    left: 72%;
    width: auto;
    padding-right: 0;
    padding-left: 1.5rem;
    text-align: left;
    box-sizing: border-box;
    z-index: 15;
}

.hero4-section-area .header-images-area .content .testimonial-quote,
.hero4-section-area .header-images-area .content p {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Modules page: equal height cards (100%), overlay, image small top right */
.case-inner-section-area .module-card-equal-height {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-inner-section-area .module-card-equal-height .content-area {
    flex: 1;
}

.case-inner-section-area .module-card-img-wrap {
    position: relative;
    min-height: 140px;
    flex-shrink: 0;
    background: #f8f9fa;
}

.case-inner-section-area .module-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.case-inner-section-area .module-card-img {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    max-height: 72px;
    max-width: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 0;
}

.animated-border-btn {
    outline-width: 1px;
    outline-offset: 0;
    outline-color: rgba(223, 61, 113, 0.75);
    outline-style: solid;
    animation: animateOutline 2s ease infinite;
}

@keyframes animateOutline {
    0% {
        outline-width: 1px;
        outline-offset: 0;
        outline-color: rgba(0, 130, 206, 0);
    }

    10% {
        outline-color: rgba(223, 61, 113, 0.75);
    }

    50% {
        outline-width: 7px;
        outline-offset: 4px;
        outline-color: rgba(0, 130, 206, 0);
    }

    100% {
        outline-width: 7px;
        outline-offset: 4px;
        outline-color: rgba(102, 102, 102, 0);
    }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    margin-bottom: 2rem;
}

.progress {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #4b5563;
    transition: background 0.2s;
    cursor: pointer;
}

.back-btn:hover {
    background: #f9fafb;
}

.back-btn span {
    margin-right: 0.5rem;
}

.next-btn,
.finish-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    color: white;
    border: 1px solid #32722f;
    background: #32722f;
    transition: background 0.2s;
    cursor: pointer;
}

.next-btn:hover,
.finish-btn:hover {
    background: #16a34a;
}

.spacer {
    width: 80px;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-header {
    margin-bottom: 1rem;
}

.form-header h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.sign-in,
.sign-up {
    color: #4caf50;
    text-decoration: underline;
}

.phone-input {
    display: flex;
    gap: 0.5rem;
}

.country-select {
    width: 120px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.helper-text {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.25rem;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    background: linear-gradient(to right, #4caf50, #ffb100);
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-btn:hover {
    opacity: 0.9;
}

.submit-btn:disabled {
    background: linear-gradient(to right, #cccccc, #999999);
    cursor: not-allowed;
    opacity: 0.7;
}

.submit-btn:disabled:hover {
    opacity: 0.7;
}

/* Terms and Links */
.terms {
    font-size: 0.75rem;
    text-align: center;
    color: #718096;
    margin: 1rem 0;
}

.terms-link {
    color: #2d3748;
    text-decoration: none;
}

.privacy-link {
    color: #ffb100;
    text-decoration: none;
}

.p-select {
    padding: 0.2rem;
}

/* OTP Form */
.otp-form {
    max-width: 400px;
    margin: 0 auto;
}

.otp-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.otp-input {
    width: 3rem;
    height: 3rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.otp-input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.resend-section {
    text-align: center;
    margin-top: 1.5rem;
}

.resend-btn {
    background: none;
    border: none;
    color: #ffb100;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
}

.resend-btn:hover {
    text-decoration: underline;
}

/* Grid and Options */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 2fr));
    gap: 1rem;
}

.option-btn {
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 15px;
    background: white;
    transition: all 0.2s;
    background-image: linear-gradient(white, white),
        linear-gradient(to bottom, #2c771f, #f9bb02);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.option-btn.active {
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    border: 1px solid transparent;
    background-image: linear-gradient(#22c55e, #f9bb02),
        linear-gradient(to bottom, #2c771f, #f9bb02);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: black;
}

.option-btn:hover {
    transform: scale(1.02);
}

/* Business Input */
.input-business-container {
    padding: 1rem;
}

.business-name-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 15px;
    background-image: linear-gradient(white, white),
        linear-gradient(to bottom, #2c771f, #f9bb02);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    font-size: 1rem;
}

.business-name-input:focus {
    outline: none;
    transform: scale(1.01);
}

.help-text {
    color: #2d6735 !important;
    font-style: italic !important;
}

.pagination-controls {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 1rem;
}

.pagination-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 30px;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

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

.pagination-btn:not(:disabled):hover {
    background-color: #e5e7eb;
}

.pagination-info {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Package Grid Styles */
.package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 16px;
    max-width: 100%;
}

.package-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    position: relative;
}

.package-item img {
    width: 36px;
    height: 36px;
    margin-bottom: 0.75rem;
}

.package-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.package-price {
    font-size: 1.25rem;
    color: #2d6735;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.package-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.package-modules {
    margin-top: 0.5rem;
}

.modules-count {
    font-size: 0.875rem;
    color: #4b5563;
    background-color: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.package-item.active {
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
        rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
        rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    transform: translateY(-2px);
    border: 1px solid transparent;
    background-image: linear-gradient(white, white),
        linear-gradient(to bottom, #2c771f, #f9bb02);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.package-item.active::before {
    content: "✓";
    position: absolute;
    top: -10px;
    right: -10px;
    background: #2c771f;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Subscription Summary Styles */
.subscription-step {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    padding: 24px;
}

.subscription-icon {
    width: 300px;
    height: 300px;
    object-fit: contain;
}

.subscription-details {
    flex: 1;
}

.package-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d6735;
}

.modules-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 1.5rem 0 1rem;
    color: #4b5563;
}

.modules-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.module-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.module-name {
    font-size: 0.875rem;
    color: #374151;
}

.module-price {
    font-size: 0.875rem;
    color: #2d6735;
    font-weight: 500;
}



/* Payment */
.payment-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    align-items: start;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    position: sticky;
    top: 0;
    max-height: 320px;
}

.methods-section {
    border: 1px solid #E5E7EB;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    max-width: 300px;
    background-image: linear-gradient(#74cc94, #d8c793),
        linear-gradient(to bottom, #74cc94, #d8c793);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}


.payment-method {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method img {
    width: 60px;
    height: 30px;
    object-fit: contain;
}

.payment-method span {
    font-size: 12px;
}

.payment-method.selected {
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    transform: translateY(-2px);
    border: 1px solid transparent;
    background-image: linear-gradient(white, white),
        linear-gradient(to bottom, #2c771f, #f9bb02);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
}

.payment-method.selected::after {
    content: '•';
    position: absolute;
    top: -18px;
    right: -2px;
    font-size: 48px;
    color: #2c771f;
    line-height: 1;
}

.form-section {
    padding-left: 24px;
}

.payment-form {
    max-width: 500px;
}

.payment-form h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #0D1757;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

/* .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 14px;
} */

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

.payment-actions {
    margin-top: 32px;
}

.payment-btn {
    width: 100%;
    padding: 12px;
    background: #0D1757;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-btn:hover {
    background: #0A1142;
}

/* Responsive Styles */
@media (max-width: 768px) {

    .module-grid,
    .module-row {
        grid-template-columns: repeat(2, 2fr);
    }

    .subscription-step {
        flex-direction: column;
        gap: 24px;
    }

    .subscription-icon {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .payment-container {
        grid-template-columns: 2fr;
        gap: 24px;
    }

    .methods-section {
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
        padding-right: 0;
        padding-bottom: 24px;
        max-width: none;
    }

    .form-section {
        padding-left: 0;
    }
}

@media (max-width: 480px) {

    .module-grid,
    .module-row {
        grid-template-columns: 2fr;
    }

    .actions {
        flex-direction: column;
        gap: 16px;
    }

    .back-btn,
    .next-btn,
    .finish-btn {
        width: 100%;
        justify-content: center;
    }

    .spacer {
        display: none;
    }

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

    .otp-inputs {
        gap: 0.5rem;
    }

    .otp-input {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 1rem !important;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .subscription-table {
        font-size: 14px;
    }

    .subscription-table th,
    .subscription-table td {
        padding: 8px;
    }
}

@media (max-width: 360px) {
    .phone-input {
        flex-direction: column;
    }

    .country-select {
        width: 100%;
    }

    .form-header h1 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {

    .progress-bar,
    .actions,
    .resend-btn,
    .submit-btn {
        display: none;
    }

    .subscription-table {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
    .helper-text {
        color: #4a5568;
    }

    .terms {
        color: #4a5568;
    }

    .subscription-details-title {
        color: #4a5568;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .animated-border-btn {
        animation: none;
    }

    .progress,
    .option-btn,
    .module-item,
    .payment-method {
        transition: none;
    }
}

.forgot-password:hover {
    color: #149844 !important;
}
