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

:root {
    --primary-color: #d4af37;
    --primary-dark: #b8941f;
    --secondary-color: #8b4513;
    --accent-color: #ff6b6b;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sarabun', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
    z-index: 0;
}

body::before,
body::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    height: 150px;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 5;
    animation: sparkleShift 28s linear infinite;
}

body::before {
    top: 0;
    background-image:
        radial-gradient(circle, rgba(255, 236, 179, 0.85) 0 5px, transparent 6px),
        radial-gradient(circle, rgba(255, 214, 120, 0.55) 0 7px, transparent 8px),
        radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 3px, transparent 4px);
    background-size: 140px 100%, 210px 100%, 110px 100%;
    background-repeat: repeat-x;
    background-position: 0 25px, 60px 12px, 30px 48px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
}

body::after {
    bottom: 0;
    background-image:
        radial-gradient(circle, rgba(255, 236, 179, 0.85) 0 5px, transparent 6px),
        radial-gradient(circle, rgba(255, 214, 120, 0.55) 0 7px, transparent 8px),
        radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 3px, transparent 4px);
    background-size: 160px 100%, 220px 100%, 120px 100%;
    background-repeat: repeat-x;
    background-position: 30px 75px, 90px 92px, 50px 60px;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
}

@keyframes sparkleShift {
    0% {
        background-position: 0 25px, 60px 12px, 30px 48px;
    }
    50% {
        background-position: 80px 35px, 20px 8px, 60px 38px;
    }
    100% {
        background-position: 160px 25px, -40px 12px, 120px 48px;
    }
}

/* Mobile Optimizations */
@media screen and (max-width: 768px) {
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Prevent horizontal scroll */
    * {
        max-width: 100%;
    }
    
    /* Improve tap highlighting */
    a, button, input, textarea, select {
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
    }
    
    /* Improve scrolling on iOS */
    .container,
    .form-wrapper,
    section {
        -webkit-overflow-scrolling: touch;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-light);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: 'Sarabun', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn i {
    margin-right: 8px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.144), rgba(155, 113, 21, 0.158)),
                url('assets/images/indexV2/profile/S__4816926.jpg') center/cover;
    background-attachment: fixed;
    text-align: center;
    color: var(--bg-white);
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--bg-white);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-decoration {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}


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

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-20px);
    }
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.title-decoration {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Compact Section Header for Merit Form */
.section-header-compact {
    margin-bottom: 30px !important;
}

.section-title-compact {
    font-size: 2rem !important;
    margin-bottom: 0 !important;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(139, 69, 19, 0.2));
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works-section {
    background: var(--bg-white);
}

.process-wrapper {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 2fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

.process-copy h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.process-copy p {
    color: var(--text-light);
    line-height: 1.8;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.process-step {
    position: relative;
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px 20px 24px 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.process-badge {
    position: absolute;
    top: -16px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

.process-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.process-step h4 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 0;
}

.process-step p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.highlight-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.highlight-card {
    display: flex;
    gap: 16px;
    padding: 22px;
    border-radius: 14px;
    background: var(--bg-light);
    border: 1px solid rgba(139, 69, 19, 0.12);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.highlight-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.highlight-card h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.highlight-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   Merit Start Section
   ============================================ */
.merit-start-section {
    text-align: center;
    padding: 60px 20px;
}

.merit-start-content {
    max-width: 500px;
    margin: 0 auto;
}

.merit-start-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.merit-start-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.merit-start-content p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.merit-start-content .btn {
    min-width: 200px;
}

/* ============================================
   Merit Form Section
   ============================================ */
.merit-form-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(139, 69, 19, 0.05));
    padding: 40px 0;
}

.form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.merit-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-color);
}

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

.form-control {
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Sarabun', sans-serif;
    transition: var(--transition);
    background: var(--bg-white);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Prevent zoom on iOS when focusing input */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-control.error {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.field-error {
    color: var(--accent-color);
    font-size: 0.875rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-error::before {
    content: "⚠";
    font-size: 1rem;
}

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

textarea.form-control-compact {
    min-height: 60px;
    resize: vertical;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.form-help-text {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

#certificate-option {
    transition: opacity 0.3s ease;
    padding: 12px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

#certificate-option .checkbox-label {
    margin-bottom: 4px;
}

#certificate-option .checkbox-label i {
    color: var(--primary-color);
    margin-right: 6px;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

/* ============================================
   Form Sections & New Form Styles
   ============================================ */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

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

.form-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Compact Form Styles */
.form-section-compact {
    margin-bottom: 25px;
    padding-bottom: 20px;
}

.form-row-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.form-group-compact {
    display: flex;
    flex-direction: column;
}

.form-section-title-small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: block;
}

.form-control-large {
    font-size: 1.1rem;
    padding: 18px 20px;
    font-weight: 500;
}

.form-control-compact {
    min-height: auto;
    resize: vertical;
}

.checkbox-group-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-group-compact .checkbox-label {
    margin: 0;
}

/* Accordion Styles */
.accordion-section {
    margin-bottom: 25px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-white);
}

.accordion-header {
    cursor: pointer;
    user-select: none;
}

.accordion-header .donor-header {
    margin: 0;
    border-radius: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 18px 25px;
    transition: var(--transition);
}

.accordion-header:hover .donor-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.accordion-header .donor-header i:last-child {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.accordion-header.active .donor-header i:last-child {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
}

.accordion-content.active {
    max-height: 5000px;
    padding: 25px;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-radio {
    display: none;
}

.payment-method-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 25px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

.payment-method-btn i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.payment-method-btn:hover {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.05);
}

.payment-radio:checked + .payment-method-btn,
.payment-method-active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
}

.payment-radio:checked + .payment-method-btn i,
.payment-method-active i {
    color: var(--bg-white);
}

/* Intention Options */
.intention-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.intention-radio {
    display: none;
}

.intention-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 25px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
    color: var(--text-dark);
}

.intention-btn:hover {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.05);
}

.intention-radio:checked + .intention-btn,
.intention-active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
}

/* Donor Header */
.donor-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-weight: 500;
}

.donor-header i:first-child {
    font-size: 1.2rem;
}

.donor-header i:last-child {
    margin-left: auto;
    font-size: 0.9rem;
}

/* Receipt Info Section */
.receipt-info-section {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    display: none;
}

.receipt-info-section.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.receipt-info-section .form-row {
    gap: 20px;
}

.receipt-info-section .form-group {
    margin-bottom: 0;
}

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

.char-count {
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: right;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.btn-cancel {
    flex: 1;
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Sarabun', sans-serif;
}

.btn-cancel:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

.btn-submit {
    flex: 1;
    margin-top: 0;
}

/* Remove icon from form group labels when not needed */
.form-section .form-group label {
    display: block;
}

.form-section .form-group label i {
    display: none;
}

/* ============================================
   Merit Package Selection
   ============================================ */
.merit-packages {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.merit-package-item {
    position: relative;
}

.package-radio {
    display: none;
}

.package-label {
    display: block;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
}

.package-label:hover {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.package-radio:checked + .package-label {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(139, 69, 19, 0.1));
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.package-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.package-badge {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.package-price {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    border-radius: 5px;
    margin-top: 20px;
    color: var(--text-dark);
}

.form-note i {
    color: #ffc107;
    font-size: 1.2rem;
}

/* ============================================
   Quantity Control
   ============================================ */
.quantity-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quantity-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.quantity-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    background: var(--bg-white);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Sarabun', sans-serif;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 70px;
    height: 40px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-white);
    font-family: 'Sarabun', sans-serif;
}

.qty-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ============================================
   QR Code Payment Section
   ============================================ */
.payment-merit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
}

.payment-left {
    display: flex;
    flex-direction: column;
}

.payment-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-qr-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
}

.qr-code-wrapper {
    text-align: left;
    flex-shrink: 0;
}

.qr-code-placeholder {
    width: 200px;
    height: 200px;
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.qr-code-placeholder i {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.qr-code-placeholder p {
    font-size: 0.75rem;
    margin: 0;
}

.qr-code-wrapper img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

.payment-details-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.payment-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.payment-info-item i {
    font-size: 1.4rem;
    color: var(--primary-color);
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.payment-info-item > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.payment-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.payment-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.total-amount-display {
    text-align: left;
    padding: 15px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(139, 69, 19, 0.1));
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.total-label {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
}

.total-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.package-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.package-select-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.package-select-label i {
    color: var(--primary-color);
}

.package-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Sarabun', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.package-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.package-select:hover {
    border-color: var(--primary-color);
}

.payment-amount {
    color: var(--primary-color) !important;
    font-size: 1.1rem !important;
}

.quantity-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quantity-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.quantity-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    background: var(--bg-white);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Sarabun', sans-serif;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 70px;
    height: 40px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-white);
    font-family: 'Sarabun', sans-serif;
}

.qty-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Compact form section */
.form-section-compact {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

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

.form-section-title-small {
    font-size: 1.1rem !important;
    margin-bottom: 15px !important;
    font-weight: 600;
    color: var(--text-dark);
}

/* ============================================
   Modal
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--bg-white);
    margin: auto;
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px 10px;
    transition: var(--transition);
    border-radius: 5px;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-body {
    padding: 30px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.project-card-body {
    padding: 32px 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.project-card-thumb {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.18);
}

.project-card-thumb img {
    width: 100%;
    height: 100%;
    display: block;
}

.project-card-thumb-large {
    width: 160px;
    height: 160px;
    border-radius: 24px;
}

.project-card-title {
    font-size: 1.25rem;
    margin: 0;
    color: var(--secondary-color);
    text-align: center;
}

.project-card-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.empty-project-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: var(--text-light);
    text-align: center;
}

.empty-project-state i {
    font-size: 2rem;
    color: var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ============================================
   Upload Area
   ============================================ */
.upload-area {
    position: relative;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.upload-label:hover {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.05);
}

.upload-label i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.upload-label span {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: 500;
}

.upload-label small {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ============================================
   Payment Upload & Donor Info Layout
   ============================================ */
.payment-donor-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* ซ้ายเล็กกว่า ขวาใหญ่กว่า */
    gap: 25px;
    align-items: start;
}

.payment-upload-left {
    display: flex;
    flex-direction: column;
}

.donor-info-right {
    display: flex;
    flex-direction: column;
}

.image-preview {
    position: relative;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    max-width: 100%;
}

.image-preview img {
    width: 100%;
    max-width: 300px; /* จำกัดขนาดภาพไม่ให้ใหญ่เกินไป */
    height: auto;
    display: block;
    object-fit: contain;
}

/* Responsive: Payment-Donor Layout */
@media (max-width: 768px) {
    .payment-donor-container {
        grid-template-columns: 1fr; /* แสดงแบบ vertical บน mobile */
        gap: 20px;
    }
    
    .image-preview img {
        max-width: 100%; /* บน mobile ให้ใช้ความกว้างเต็ม */
    }
}

.ocr-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    margin-top: 15px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.ocr-status i {
    font-size: 1.2rem;
}

.ocr-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    margin-top: 15px;
    color: #c33;
    font-size: 0.9rem;
}

.ocr-error i {
    font-size: 1.2rem;
    color: #c33;
}

.ocr-error span {
    flex: 1;
    line-height: 1.5;
}

.remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.remove-image:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery-section {
    background: var(--bg-light);
    overflow: hidden;
}

.gallery-marquee {
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow: hidden;
    position: relative;
    padding: 18px 0 24px;
}

.gallery-marquee::before,
.gallery-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 140px;
    pointer-events: none;
    z-index: 2;
}

.gallery-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), rgba(255, 255, 255, 0));
}

.gallery-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), rgba(255, 255, 255, 0));
}

.marquee-row {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 28px;
    animation: marquee-scroll-left 25s linear infinite;
}

.marquee-row-forward .marquee-track {
    animation-name: marquee-scroll-right;
}

.marquee-row-reverse .marquee-track {
    animation-name: marquee-scroll-left;
}

.marquee-item {
    flex: 0 0 clamp(220px, 18vw, 360px);
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-white);
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 36px;
}

.gallery-item {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-white);
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes marquee-scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--bg-white);
    padding: 60px 0;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
    color: var(--bg-white);
}

.contact-details h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #6b5c38;
    color: var(--bg-white);
    padding: 10px 0 1px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-compact {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    align-items: start;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.scroll-top.show {
    display: flex;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .process-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-copy {
        text-align: center;
    }
    
    .process-steps,
    .highlight-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .form-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form Responsive */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-row-compact {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .payment-methods,
    .intention-options {
        flex-direction: column;
    }
    
    .payment-method-btn,
    .intention-btn {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-wrapper {
        padding: 30px 20px;
    }
    
    .accordion-content.active {
        padding: 20px 15px;
    }
    
    .receipt-info-section .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Merit Package Responsive */
    .merit-packages {
        gap: 12px;
    }
    
    .package-label {
        padding: 15px;
    }
    
    .package-title {
        font-size: 1rem;
    }
    
    .package-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .payment-merit-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .payment-qr-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .qr-code-wrapper {
        text-align: center;
    }
    
    .qr-code-placeholder {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }
    
    .qr-code-wrapper img {
        width: 180px;
        margin: 0 auto;
    }
    
    .payment-details-column {
        width: 100%;
    }
    
    .payment-info-item,
    .total-amount-display {
        width: 100%;
    }
    
    .package-select {
        width: 100%;
    }
    
    .merit-start-section {
        padding: 40px 15px;
    }
    
    .merit-start-content i {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .merit-start-content h3 {
        font-size: 1.3rem;
    }
    
    .merit-start-content p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .merit-start-content .btn {
        min-width: 180px;
        width: 100%;
    }
    
    .form-section-title-small {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
    
    .upload-label {
        padding: 20px 12px;
    }
    
    .upload-label i {
        font-size: 2rem;
    }
    
    .upload-label span {
        font-size: 0.85rem;
    }
    
    /* Modal Responsive */
    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    /* Upload Area Responsive */
    .upload-label {
        padding: 30px 15px;
    }
    
    .upload-label i {
        font-size: 2.5rem;
    }
    
    .upload-label span {
        font-size: 0.9rem;
    }
    
    /* Contact Responsive */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .contact-section {
        padding: 40px 0;
    }
}

/* Mobile First - Extra Small Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-title-compact {
        font-size: 1.75rem !important;
    }
    
    .section-header-compact {
        margin-bottom: 25px !important;
    }
    
    .merit-form-section {
        padding: 30px 0;
    }
    
    .form-wrapper {
        padding: 30px 20px;
    }
    
    /* Navigation */
    .logo span {
        font-size: 0.9rem;
    }
    
    .nav-menu {
        padding: 1rem;
    }
    
    .nav-link {
        padding: 10px 0;
        font-size: 0.95rem;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 14px 30px;
        font-size: 1rem;
        width: 100%;
    }
    
    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding-top: 70px;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    /* About Section */
    .about-content {
        gap: 30px;
    }
    
    .about-image img {
        height: 300px;
    }
    
    .benefits-grid {
        gap: 20px;
    }
    
    .benefit-item {
        padding: 20px 15px;
    }
    
    /* Form */
    .form-wrapper {
        padding: 25px 15px;
    }
    
    .form-section {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .form-control-large {
        padding: 15px 18px;
        font-size: 16px;
    }
    
    textarea.form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .payment-method-btn,
    .intention-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .donor-header {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .accordion-content.active {
        padding: 15px;
    }
    
    /* Contact */
    .contact-item {
        padding: 15px;
        gap: 12px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 1rem;
    }
    
    .contact-details h3 {
        font-size: 0.95rem;
    }
    
    .contact-details p {
        font-size: 0.85rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    /* Gallery */
    .gallery-grid {
        gap: 15px;
    }
    
    /* Process cards */
    .process-wrapper {
        gap: 28px;
    }
    
    .process-steps {
        gap: 18px;
    }
    
    .process-step {
        padding: 22px 18px 22px 24px;
    }
    
    .process-badge {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        top: -15px;
        left: 18px;
    }
    
    .process-icon {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
    
    .process-step h4 {
        font-size: 1.05rem;
    }
    
    .process-step p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .highlight-wrapper {
        gap: 18px;
    }
    
    .highlight-card {
        padding: 20px;
    }
}

/* Very Small Devices (iPhone SE, etc.) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-title-compact {
        font-size: 1.5rem !important;
    }
    
    .section-header-compact {
        margin-bottom: 20px !important;
    }
    
    .form-wrapper {
        padding: 20px 12px;
    }
    
    .btn-large {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .process-step {
        padding: 20px 18px 20px 22px;
    }
    
    .process-badge {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        top: -14px;
        left: 16px;
    }
    
    .process-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    .process-step h4 {
        font-size: 1rem;
    }
    
    .process-step p {
        font-size: 0.9rem;
    }
    
    .highlight-card {
        padding: 18px;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 50px 0;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    /* Process cards in landscape */
    .process-steps {
        gap: 20px;
    }
    
    .process-step {
        padding: 20px 16px 20px 22px;
    }
    
    .process-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .process-step h4 {
        font-size: 1.05rem;
    }
    
    .process-step p {
        font-size: 0.95rem;
    }
    
    .highlight-card {
        padding: 18px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch target sizes */
    .btn,
    .payment-method-btn,
    .intention-btn,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .checkbox-label,
    .accordion-header {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .contact-item:hover {
        transform: none;
    }
    
    .benefit-item:hover,
    .highlight-card:hover {
        transform: none;
    }
}

