:root {
    --primary: #26305d;
    --secondary: #7f53ac;
    --background: #f8f9fa;
    --text: #2d3436;
    --error: #ff7675;
    --success: #55efc4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;  /* Remove tap highlight on mobile */
}

/* Touch optimization for mobile */
html {
    touch-action: manipulation;     /* Faster taps, disable double-tap zoom */
    -webkit-text-size-adjust: 100%; /* Prevent font size adjustment on orientation change */
}

body {
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    padding: 1rem;
    overflow-x: hidden;         /* Only hide horizontal overflow */
    overflow-y: auto;           /* Allow vertical scrolling */
    background-image: url('assets/bg2.avif');
    min-height: 100vh;          /* Full height */
    min-height: 100dvh;         /* Dynamic viewport height (mobile keyboard aware) */
    -webkit-overflow-scrolling: touch;  /* Smooth scrolling on iOS */
}

.container {
    background-image: linear-gradient(0deg, #ffffff, #f9f5ed);
    max-width: 600px;
    min-height: 95vh;               /* Minimum height */
    min-height: 95dvh;              /* Dynamic viewport height (keyboard aware) */
    max-height: 100vh;              /* Maximum height to enable scrolling */
    max-height: 100dvh;             /* Dynamic viewport height */
    /* padding: 0.5rem 2rem 0rem 2rem; Remove bottom padding */
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;               /* Contain overflow within container */
}

/* Scrollable Content Section */
.content-wrapper {
    flex: 1;                        /* Takes up available space */
    overflow-y: auto;               /* Enables scrolling */
    padding-bottom: 0px;            /* Creates gap above button but not visible */
    scrollbar-width: none;          /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;       /* Hide scrollbar for IE/Edge */
    background-image: url('assets/numerology-correction-bg.png');
    background-repeat: round;
    -webkit-overflow-scrolling: touch;  /* Smooth momentum scrolling on iOS */
    overscroll-behavior: contain;   /* Prevent scroll chaining */
}

.content-wrapper::-webkit-scrollbar {
    display: none;                  /* Hide scrollbar for Chrome/Safari */
}       


.container::-webkit-scrollbar {
    display: none; /* Hides scrollbar for Chrome, Safari, and Edge */
}



@media (max-width: 480px) {
    body {
        padding: 0rem;
    }

    .container {
        padding: 1rem;
        border-radius: 0px;
        padding-bottom: calc(4rem + env(safe-area-inset-bottom));
    }

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

    .border-custom {
        max-width: 275px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0rem;
    }

    .container {
        padding: 1rem;
        border-radius: 0px;
        padding-bottom: calc(4rem + env(safe-area-inset-bottom));
    }

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

    .border-custom {
        max-width: 275px;
        width: 100%;
    }
}

h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.form-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-section.active {
    display: block;
}


.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;                /* Prevents iOS zoom on focus (must be 16px+) */
    transition: border-color 0.3s ease;
    -webkit-appearance: none;       /* Remove iOS default styling */
    appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    min-height: 44px;               /* Minimum touch target (accessibility) */
    touch-action: manipulation;     /* Faster tap response */
}

button:hover {
    transform: translateY(-2px);
}

.btn-submit {
    background: var(--success);
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}



.tw-bg{
    --tw-bg-opacity: 1;
    background-color: rgb(241 98 50 / var(--tw-bg-opacity));
}

.max-w-sm {
    max-width: 24rem;
}
.w-full {
/*			width: 100%;*/
}

/*.btn-container {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 6px 10px rgba(135, 206, 250, 0.6); 
    display: flex;
    justify-content: end;
    margin-top: 1.5rem;
}*/

.btn-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
/*            border-top: 1px solid #ccc; */
    border-radius: 10px;
    box-shadow: 0 6px 10px rgba(241, 98, 50, 0.6); 
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-bottom: 10px;
}

.btn-prev {
    background-color: rgb(255 255 255 / var(--tw-bg-opacity));
    color: rgb(241 98 50 / var(--tw-bg-opacity));
    border: 1px solid #FF8C00;
    transform: translateY(0px);
    /* width: 10%;  */
}

.btn-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px; 
    --tw-bg-opacity: 1;
    background-color: rgb(241 98 50 / var(--tw-bg-opacity));
    color: white;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    /* width: 30%;  */
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}


.btn-prev:hover, .btn-next:hover {
    /* --tw-bg-opacity: 1;
    background-color: rgb(238 139 10 / var(--tw-bg-opacity));
    color: white;
    transform: translateY(-2px); */
   
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity));
    color: rgb(241 98 50 / var(--tw-bg-opacity));
    border: 1px solid #FF8C00;
    transform: translateY(0px);
}



.btn-prev:active, .btn-next:active {
    /* background-color: rgb(241 98 50 / var(--tw-bg-opacity)) !important;  */
    /* color: white !important;
    box-shadow: none !important; 
    outline: none !important; */
    
    background-color: rgb(255 255 255 / var(--tw-bg-opacity)) !important;
    /* color: rgb(241 98 50 / var(--tw-bg-opacity)); */
    border: 1px solid #FF8C00;
    box-shadow: none !important; 
    outline: none !important;
    
}

.btn-prev svg, .btn-next svg {
    width: 24px;
    height: 24px;
}

.bg-life-path-text {
    --tw-bg-opacity: 1;
    background-color: rgb(245 218 139 / var(--tw-bg-opacity));
}

.bg-life-path-number {
    --tw-bg-opacity: 1;
    background-color: rgb(195 146 3 / var(--tw-bg-opacity));
}

.bg-destiny-text {
    --tw-bg-opacity: 1;
    background-color: rgb(157 238 155 / var(--tw-bg-opacity));
}

.bg-destiny-number {
    --tw-bg-opacity: 1;
    background-color: rgb(27 109 24 / var(--tw-bg-opacity));
}

.bg-personality-text {
    --tw-bg-opacity: 1;
    background-color: rgb(151 157 239 / var(--tw-bg-opacity));
}

.bg-personality-number {
    --tw-bg-opacity: 1;
    background-color: rgb(43 51 161 / var(--tw-bg-opacity));
}

.bg-expression-text {
   --tw-bg-opacity: 1;
    background-color: rgb(210 209 128 / var(--tw-bg-opacity));
}

.bg-expression-number {
    --tw-bg-opacity: 1;
    background-color: rgb(158 157 49 / var(--tw-bg-opacity));
}

.bg-soul-urge-text {
    --tw-bg-opacity: 1;
    background-color: rgb(227 170 128 / var(--tw-bg-opacity));
}

.bg-soul-urge-number {
    --tw-bg-opacity: 1;
    background-color: rgb(111 80 57 / var(--tw-bg-opacity));
}

.bg-subconscious-text {
    --tw-bg-opacity: 1;
    background-color: rgb(201 215 234 / var(--tw-bg-opacity));
}

.bg-subconscious-number {
    --tw-bg-opacity: 1;
    background-color: rgb(90 108 134 / var(--tw-bg-opacity));
}

.bg-challenge-text {
    --tw-bg-opacity: 1;
    background-color: rgb(195 156 222 / var(--tw-bg-opacity));
}

.bg-challenge-number {
    --tw-bg-opacity: 1;
    background-color: rgb(130 74 168 / var(--tw-bg-opacity));
}

.custom-select {
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 20px;
    font-size: 1.25rem;
    text-align: center;
    width: 100%;
    outline: none;
}

.custom-select:focus {
    border-color: #7469B6;
    box-shadow: none;
}

.spin {
    animation: spin 10s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.border-custom {
    /* --tw-border-opacity: 1;
    border-color: rgb(241 98 50 / var(--tw-border-opacity)) !important; */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #FF8C00 !important;
   
    
}

.bg-progress-bar {
    /* --tw-border-opacity: 1;
    background-color: rgb(245 106 24 / var(--tw-border-opacity)) !important; */
    background: linear-gradient(270deg, #f16232, #fff 194.64%);
    border-radius: 8px;
    height: 100%;
    transition: width .5s ease-in-out;
}

.rounded-circle {
    border-radius: 9999px !important;
}

.border-cust-primary {
    --tw-border-opacity: 1;
    border-color: rgb(117 106 182 / var(--tw-border-opacity)) !important;
}

.bg-cust-primary{
    --tw-bg-opacity: 1;
    background-color: rgb(117 106 182 / var(--tw-bg-opacity));
}

.bg-indigo-200 {
    --tw-bg-opacity: 1;
    background-color: rgb(199 210 254 / var(--tw-bg-opacity));
}

.rounded-xl {
    border-radius: .75rem;
}

.bg-indigo-400 {
    background-color: rgba(129, 140, 248, .6);
}

.border-current {
    border-color: currentColor;
}

.rounded-md {
    border-radius: .375rem;
}

.bg-cust-indigo {
    --tw-bg-opacity: 1;
    background-color: rgb(117 106 182 / var(--tw-bg-opacity));
}

.pad-custom {
  padding: 0.25rem 0.75rem !important;
}

.vastu-chakra-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    left: -36px;
}

.vastu-chakra-image-loader {
    width: 150px;
    height: 150px;
    object-fit: cover;
    left:-25px;
}
.centered-img {
display: block;
margin: 0 auto;
}


.c1,
.c10,
.c19,
.c28 {
    border-color: #f44336 !important;
}

.c2,
.c20 {
    border-color: #ff9800 !important;
}

.c3,
.c12,
.c21,
.c30 {
    border-color: #ffeb3b !important;
}

.c4,
.c13,
.c31 {
    border-color: #4caf50 !important;
}

.c5,
.c14,
.c23 {
    border-color: #48d1cc !important;
}

.c6,
.c15,
.c24 {
    border-color: #2196f3 !important;
}

.c7,
.c16,
.c25 {
    border-color: #6a0dad !important;
}

.c8,
.c17,
.c26 {
    border-color: #d000d0 !important;
}

.c9,
.c18,
.c27 {
    border-color: #ffc107 !important;
}

.c11,
.c29 {
    border-color: #9c27b0 !important;
}

.c22 {
    border-color: #3f51b5 !important;
}

.num {
    display: inline-block;
    border: 4px solid grey;
    background-color: white;
    line-height: 21px;
    height: 30px;
    width: 30px;
    text-align: center;
    border-radius: 50%;
}

.nummed {
    display: inline-block;
    border: 4px solid grey;
    background-color: white;
    line-height: 41px;
    min-height: 50px;
    min-width: 50px;
    text-align: center;
    border-radius: 50%;
    font-size: 14pt;
}

.numbig {
    display: inline-block;
    border: 6px solid grey;
    background-color: white;
    line-height: 87px;
    min-height: 100px;
    min-width: 100px;
    text-align: center;
    border-radius: 50%;
    font-size: 36pt;
}

.testimonial-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #FF8C00
}
.profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.profile-info {
    text-align: left;
}
.profile-info h3 {
    margin: 0;
    font-size: 18px;
}
.profile-info p {
    margin: 0;
    color: gray;
    font-size: 14px;
}
.stars {
    color: gold;
    font-size: 18px;
    margin: 10px 0;
}
.testimonial-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}
.cta-button {
    display: inline-block;
    background: #ffc246;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(17, 17, 17, 0.01);
    transition: 0.3s;
    
}
.cta-button:hover {
    background: #FF8C00;
}
.logo {
display: flex;
align-items: center;
justify-self: center;
text-decoration: none;
color: var(--light);
}
.logo-img {
width: 50px;
height: 50px;
border-radius: 50%;
background: radial-gradient(circle, #ff0000, #ffcc00);
display: flex;
justify-content: center;
align-items: center;
position: relative;
border: 2px solid white;
margin-right: 1rem;
}

.logo-inner {
width: 38px;
height: 38px;
border-radius: 50%;
background: #222;
display: flex;
justify-content: center;
align-items: center;
color: white;
font-weight: bold;
font-size: 16px;
}
.logo-text {
font-family: 'Playfair Display', serif;
font-size: 1.5rem;
font-weight: 600;
}