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

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #6b7280;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --error-color: #dc2626;
    --success-color: #16a34a;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --max-width: 800px;
    --border-radius: 0.5rem;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    
    /* New brand colors for pray.guru */
    --brand-50: #f4fbfb;
    --brand-100: #e8f6f5;
    --brand-200: #c9e7e6;
    --brand-300: #9ed2cf;
    --brand-400: #6eb7b2;
    --brand-500: #4ea09b;
    --brand-600: #3a7f7a;
    --brand-700: #2f6c67;
    --brand-800: #275755;
    --brand-900: #1e4645;
    --gold-400: #f5d565;
    --gold-500: #eab308;
    --ink: #0b1020;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Readability 50+: larger base font and high contrast */
html {
    font-size: 18px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* New home page design */
.min-h-screen {
    min-height: 100vh;
}

.bg-white {
    background-color: #ffffff;
}

.text-ink {
    color: var(--ink);
}

.gradient-soft {
    background: radial-gradient(1200px 600px at 70% -10%, rgba(234, 179, 8, .15), transparent 60%),
                radial-gradient(1000px 500px at -20% -10%, rgba(78, 160, 155, .12), transparent 55%),
                linear-gradient(180deg, #ffffff, #f8fafc);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-10 {
    gap: 2.5rem;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.z-30 {
    z-index: 30;
}

.backdrop-blur {
    backdrop-filter: blur(8px);
}

.bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.9);
}

.border-b {
    border-bottom-width: 1px;
}

.border-slate-200 {
    border-color: #e2e8f0;
}

.max-w-6xl {
    max-width: 72rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.w-9 {
    width: 2.25rem;
}

.h-9 {
    height: 2.25rem;
}

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

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.bg-brand-600 {
    background-color: var(--brand-600);
}

.grid {
    display: grid;
}

.place-content-center {
    place-content: center;
}

.text-white {
    color: #ffffff;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.hidden {
    display: none;
}

.sm\:flex {
    display: none;
}
@media (min-width: 640px) {
    .sm\:flex {
        display: flex;
    }
}

.hover\:text-brand-700:hover {
    color: var(--brand-700);
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.sm\:inline-flex {
    display: none;
}
@media (min-width: 640px) {
    .sm\:inline-flex {
        display: inline-flex;
    }
}

.border {
    border-width: 1px;
    border-color: var(--border-color);
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.hover\:border-brand-600:hover {
    border-color: var(--brand-600);
}

.ml-1 {
    margin-left: 0.25rem;
}

.inline-flex {
    display: inline-flex;
}

.bg-brand-700 {
    background-color: var(--brand-700);
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.px-7 {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.hover\:bg-brand-800:hover {
    background-color: var(--brand-800);
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-4:focus {
    box-shadow: 0 0 0 4px rgba(58, 127, 122, 0.22);
}

.focus\:ring-brand-300:focus {
    box-shadow: 0 0 0 4px rgba(110, 183, 178, 0.22);
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-5 > * + * {
    margin-top: 1.25rem;
}

.border-t {
    border-top-width: 1px;
}

.lg\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lg\:py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
@media (min-width: 1024px) {
    .lg\:py-20 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.text-4xl\/tight {
    font-size: 2.25rem;
    line-height: 1.2;
}

.sm\:text-5xl\/tight {
    font-size: 2.25rem;
    line-height: 1.2;
}
@media (min-width: 640px) {
    .sm\:text-5xl\/tight {
        font-size: 3rem;
        line-height: 1.2;
    }
}

.text-brand-700 {
    color: var(--brand-700);
}

.text-slate-800 {
    color: #1e293b;
}

.leading-relaxed {
    line-height: 1.625;
}

.pt-2 {
    padding-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.sm\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.md\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.text-7xl {
    font-size: 4.5rem;
    line-height: 1;
}

.p-5 {
    padding: 1.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(58, 127, 122, 0.25);
    padding: 0.5rem 0.9rem;
    font-size: 1rem;
    cursor: pointer;
    background: transparent;
    color: inherit;
    font-family: inherit;
    transition: all 0.2s;
}

.chip:hover {
    border-color: var(--brand-600);
    background-color: rgba(58, 127, 122, 0.05);
}

.text-slate-700 {
    color: #334155;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-slate-600 {
    color: #475569;
}

.relative {
    position: relative;
}

.hero-card {
    box-shadow: 0 0 60px 12px rgba(78, 160, 155, .12);
}

.overflow-hidden {
    overflow: hidden;
}

.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

.p-10 {
    padding: 2.5rem;
}

.sm\:p-14 {
    padding: 2.5rem;
}
@media (min-width: 640px) {
    .sm\:p-14 {
        padding: 3.5rem;
    }
}

.text-center {
    text-align: center;
}

.max-w-md {
    max-width: 28rem;
}

.w-2\.5 {
    width: 0.625rem;
}

.h-2\.5 {
    height: 0.625rem;
}

.rounded-full {
    border-radius: 9999px;
}

.bg-emerald-500 {
    background-color: #10b981;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Additional form utility classes */
.block {
    display: block;
}

.text-red-600 {
    color: #dc2626;
}

.max-w-2xl {
    max-width: 42rem;
}

.h-6 {
    height: 1.5rem;
}

.w-40 {
    width: 10rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.underline {
    text-decoration: underline;
}

.w-full {
    width: 100%;
}

.shadow-glow {
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.25), 0 10px 30px rgba(13, 17, 28, 0.25);
}

.open\:shadow-glow:open {
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.25), 0 10px 30px rgba(13, 17, 28, 0.25);
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Hero Page (Home) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-bottom: var(--spacing-lg);
}

.hero-nav {
    margin-top: var(--spacing-xl);
}

.hero-nav a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.hero-nav a:hover {
    opacity: 1;
}

/* Page Container */
.page-container {
    min-height: 100vh;
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-light);
}

.page-header {
    margin-bottom: var(--spacing-xl);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo:hover {
    text-decoration: underline;
}

/* Forms */
.form-wrapper {
    background: var(--bg-color);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-wrapper h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.form-note {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    font-size: 0.9rem;
}

.prayer-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
}

.required {
    color: var(--error-color);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Donation Options */
.donation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(58, 127, 122, 0.25);
    padding: 0.5rem 0.9rem;
    font-size: 1rem;
    cursor: pointer;
    background: transparent;
    color: inherit;
    font-family: inherit;
    transition: all 0.2s;
}

.radio-label:hover {
    border-color: var(--brand-600);
    background-color: rgba(58, 127, 122, 0.05);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-label span {
    cursor: pointer;
}

.radio-label:has(input[type="radio"]:checked) {
    background: var(--brand-600);
    color: #fff;
    border-color: var(--brand-600);
    box-shadow: 0 0 0 3px rgba(58, 127, 122, 0.22);
}

.custom-donation-input {
    margin-top: 0.75rem;
}

.custom-donation-input input {
    width: 100%;
    max-width: 200px;
}

.donation-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Turnstile */
.turnstile-container {
    display: flex;
    justify-content: center;
    margin: var(--spacing-sm) 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
}

.form-actions {
    margin-top: var(--spacing-md);
}

.form-actions .btn {
    width: 100%;
}

/* Error Messages */
.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    display: none;
}

.error-message.show {
    display: block;
}

.global-error {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(220, 38, 38, 0.1);
    border-radius: var(--border-radius);
}

/* Thank You Page */
.thankyou-wrapper {
    background: var(--bg-color);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.thankyou-content h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.thankyou-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    color: var(--text-color);
}

.thankyou-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: var(--spacing-lg) auto;
}

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

/* FAQ Page */
.faq-wrapper {
    background: var(--bg-color);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.faq-wrapper h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.faq-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.faq-section:last-of-type {
    border-bottom: none;
}

.faq-section h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.faq-section p {
    color: var(--text-color);
    line-height: 1.8;
}

.faq-footer {
    margin-top: var(--spacing-2xl);
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Header styling */
main.min-h-screen header a {
    text-decoration: none;
}

/* Footer styling */
main.min-h-screen footer a {
    text-decoration: none;
}

main.min-h-screen footer a:hover {
    color: var(--brand-700);
}

/* Additional utility classes */
section {
    flex: 1;
}

ul {
    list-style: none;
}

li {
    margin: 0;
    padding: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .form-wrapper,
    .thankyou-wrapper,
    .faq-wrapper {
        padding: var(--spacing-md);
    }

    .donation-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .thankyou-actions,
    .faq-footer {
        flex-direction: column;
    }

    .thankyou-actions .btn,
    .faq-footer .btn {
        width: 100%;
    }
}

