:root {
    --harvest-green: #005a26;
    --harvest-dark: #00441b;
    --harvest-light: #f0f7f2;
    --harvest-orange: #f5a623;
    --harvest-orange-light: #f8c972;
    --primary: #005a26;
    --secondary: #f5a623;
    --background: #FFFFFF;
    --text-primary: #333333;
    --text-secondary: #555555;
    --border: #dddddd;
    --error: #D32F2F;
    --success: #005a26;
    --warning: #f5a623;
    --shadow: rgba(0, 0, 0, 0.1);
    --section-bg: #f9f9f9;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    color: #2C2C2C;
    background-color: #F8FAF8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Fix for WordPress integration */
#app {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.main {
    flex: 1;
    padding: 2rem 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.page {
    width: 100%;
    max-width: 100%;
}
.hero {
    padding: 2rem 1rem;
    background-color: var(--harvest-light);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: '';
    display: block;
    width: 200px;
    height: 5px;
    /* background-image: url('forgotten-harvest-logo.png'); */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 1rem;
}

.hero-title {
    color: var(--harvest-dark);
    font-weight: 700;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}
.form-container {
    max-width: 80rem;
    margin: 0 auto 2rem;
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 3rem;
    border-top: 4px solid var(--harvest-green);
    width: 100%;
}

/* Form layout fixes */
.form-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.form-section {
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
    width: 100%;
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--harvest-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--harvest-green);
    display: inline-block;
}

/* Grid layout fixes */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 1rem auto;
    }
}

/* Form elements */
.field-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.field-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.sub-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.required {
    color: var(--error);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--harvest-green);
    box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.1);
}

input.error,
select.error {
    border-color: var(--error);
}

/* Checkbox and radio styles */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    width: auto;
    accent-color: var(--harvest-green);
}

.checkbox-item label,
.radio-item label {
    flex: 1;
    cursor: pointer;
    font-weight: normal;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--harvest-green);
    color: white;
}

.btn-primary:hover {
    background-color: var(--harvest-dark);
}

.btn-secondary {
    background-color: var(--harvest-orange);
    color: white;
}

.btn-secondary:hover {
    background-color: #E65100;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
}

/* Error message styles */
.error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-direction: column;
}@media (min-width: 640px) {
    .modal-buttons {
        flex-direction: column;
    }
}

.success-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--success);
    font-weight: bold;
}

.success-message {
    background: rgba(76, 175, 80, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.success-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(76, 175, 80, 0.2);
}

.error-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--error);
    font-weight: bold;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid #E0E0E0;
    border-top: 3px solid var(--harvest-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.field-group.has-error input,
.field-group.has-error select {
    border-color: var(--error);
    background-color: rgba(244, 67, 54, 0.05);
}

.field-group.has-success input,
.field-group.has-success select {
    border-color: var(--success);
    background-color: rgba(76, 175, 80, 0.05);
}

.page {
    transition: opacity 0.3s ease-in-out;
}

.modal {
    transition: opacity 0.3s ease-in-out;
}

.btn {
    transition: all 0.2s ease-in-out;
}

input, select, textarea {
    transition: all 0.2s ease-in-out;
}

.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--harvest-green);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-secondary: #000000;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Info box and income table styles */
.info-box {
    background-color: var(--harvest-light);
    border: 1px solid var(--harvest-green);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1rem 0;
}

.info-title {
    color: var(--harvest-dark);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-note {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
    font-style: italic;
}

.info-note a {
    color: var(--harvest-green);
    text-decoration: none;
}

.info-note a:hover {
    text-decoration: underline;
}

.income-table {
    overflow-x: auto;
    margin: 1rem 0;
}

.income-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.income-table th {
    background-color: var(--harvest-green);
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
}

.income-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.income-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.income-table tr:hover {
    background-color: rgba(0, 90, 38, 0.05);
}

@media (max-width: 768px) {
    .income-table {
        font-size: 0.875rem;
    }
    
    .income-table th,
    .income-table td {
        padding: 0.5rem;
    }
    
    .info-box {
        padding: 1rem;
    }
}
