/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Ashram Theme Colors */
    --primary: #F26522;
    /* Saffron/Orange */
    --primary-dark: #D94E0F;
    --secondary: #800000;
    /* Maroon */
    --bg-color: #FFF5E6;
    /* Light Cream */
    --card-bg: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #E0E0E0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-color);
    min-height: 100vh;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

/* Sticky Header */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.donate-btn {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.donate-btn:hover {
    background: var(--primary-dark);
}

/* Main Container */
.container {
    width: 100%;
    max-width: 960px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 40px auto;
    animation: fadeIn 0.5s ease-out;
    border-top: 5px solid var(--primary);
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

input[readonly] {
    background-color: #f9fafb;
    cursor: not-allowed;
}

button {
    width: 100%;
    padding: 14px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    margin-top: 1rem;
}

button:hover {
    background: #600000;
    transform: translateY(-2px);
}

button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.row {
    display: flex;
    gap: 15px;
}

.col {
    flex: 1;
}

/* Footer */
.main-footer {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s;
    border-top: 5px solid var(--primary);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.otp-inputs input {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 1.2rem;
    padding: 5px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Helper Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 10px;
}

.mt-2 {
    margin-top: 10px;
}

/* Image Previews */
.preview-container {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preview-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
    display: none;
    /* Hidden by default until JS shows it */
}

/* Checkbox & Terms */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    /* Aligns checkbox with the first line of text */
    gap: 12px;
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    min-width: 18px;
    /* Fixed width to prevent shrinking */
    width: 18px;
    height: 18px;
    margin-top: 3px;
    /* visual alignment with line-height */
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-group span {
    flex: 1;
    /* Ensures text takes remaining space */
}

/* Payment Info Card in Step 2 */
.payment-info-card {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.payment-info-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.payment-row span:last-child {
    font-weight: 600;
}

/* Hamburger Menu */
.menu-container {
    position: relative;
}

.menu-toggle {
    background: transparent;
    border: 1px solid var(--secondary);
    border-radius: 5px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 42px;
    margin-top: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover {
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 8px;
    width: 200px;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    margin-top: 15px;
    border: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-menu.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.nav-menu a {
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.nav-menu a:last-child {
    border-bottom: none;
}

.nav-menu a:hover {
    background: #fff5f0;
    color: var(--primary);
}