@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --bg-color: #F3F4F6;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --input-bg: rgba(255, 255, 255, 0.9);
    --success-color: #10B981;
    --highlight-bg: rgba(238, 242, 255, 0.5);
    --border-radius: 16px;
    --input-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #E0E7FF 0%, #F3F4F6 100%);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    padding: 16px 12px;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
}

.app-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px 0;
}

.app-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.app-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.survey-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 24px 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.form-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
}

.section-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.section-desc.highlight {
    background-color: #FEF2F2;
    color: #DC2626;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 4px solid #EF4444;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.field-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    margin-top: -4px;
}

input[type="text"],
input[type="number"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px; /* 16px prevents iOS zoom on focus */
    border: 1px solid var(--border-color);
    border-radius: var(--input-radius);
    background-color: var(--input-bg);
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

input:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    background-color: #fff;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-label {
    display: inline-block;
    margin-bottom: 0;
}

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

.radio-label span {
    display: inline-flex;
    align-items: center;
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-label input[type="radio"]:checked + span {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Custom layout for money inputs */
.row-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.row-group label {
    margin-bottom: 0;
    flex: 1;
}

.row-group input {
    width: 140px;
    text-align: right;
}

.highlight-box {
    background: var(--highlight-bg);
    padding: 16px;
    border-radius: var(--input-radius);
    border: 1px dashed var(--primary-color);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    margin-top: 10px;
    margin-bottom: 40px;
}

.submit-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

.submit-btn:disabled {
    background: #9CA3AF;
    box-shadow: none;
    cursor: not-allowed;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--success-color);
    color: white;
    padding: 14px 24px;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.toast.show {
    bottom: 40px;
}
