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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1c1e21;
    background-color: #f0f2f5;
    overflow-x: hidden;
}

/* Very subtle background watermark */
.bg-watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.watermark {
    position: absolute;
    font-size: 12rem;
    font-weight: bold;
    color: rgba(28, 30, 33, 0.015);
    white-space: nowrap;
    user-select: none;
    font-family: Arial, sans-serif;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotation)); }
    50% { transform: translateY(-20px) rotate(calc(var(--rotation) + 5deg)); }
}

.w1 { top: 10%; left: -20%; --rotation: -15deg; }
.w2 { top: 30%; right: -25%; --rotation: 20deg; }
.w3 { top: 50%; left: -30%; --rotation: -25deg; }
.w4 { top: 70%; right: -20%; --rotation: 15deg; }
.w5 { top: 90%; left: -25%; --rotation: -20deg; }
.w6 { top: 20%; left: 25%; --rotation: 10deg; }
.w7 { top: 40%; left: 10%; --rotation: -10deg; }
.w8 { top: 60%; right: 15%; --rotation: 25deg; }
.w9 { top: 80%; left: 40%; --rotation: -18deg; }
.w10 { top: 5%; right: 10%; --rotation: 12deg; }

/* Header */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #dadde1;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.org-info h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1c1e21;
}

.org-info p {
    font-size: 0.9rem;
    color: #65676b;
}

.quick-links {
    display: flex;
    gap: 1.5rem;
}

.quick-links .link {
    color: #1877f2;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.quick-links .link:hover {
    background-color: #e7f3ff;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* Welcome Section */
.welcome-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #dadde1;
}

.welcome-section h2 {
    color: #1c1e21;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.welcome-section p {
    color: #65676b;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-card {
    background: #f7f8fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e4e6ea;
}

.info-card h3 {
    color: #1c1e21;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-card p {
    color: #65676b;
    font-size: 0.9rem;
}

/* Form Section */
.form-section {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #dadde1;
    overflow: hidden;
}

.form-container {
    padding: 2rem;
}

.progress-header {
    margin-bottom: 2rem;
    text-align: center;
}

.progress-header h3 {
    color: #1c1e21;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e4e6ea;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: #1877f2;
    width: 12.5%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.progress-text {
    color: #65676b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Multi-step Form */
.multi-step-form {
    position: relative;
}

.form-step {
    display: none;
    animation: slideIn 0.3s ease-out;
}

.form-step.active {
    display: block;
}

.form-step h4 {
    color: #1c1e21;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-step > p {
    color: #65676b;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1c1e21;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: #ffffff;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

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

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
    gap: 0.5rem;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 0.1rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-next,
.btn-prev,
.btn-submit {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-next {
    background: #1877f2;
    color: white;
    margin-left: auto;
}

.btn-next:hover {
    background: #166fe5;
}

.btn-prev {
    background: #e4e6ea;
    color: #1c1e21;
}

.btn-prev:hover {
    background: #d8dadf;
}

.btn-submit {
    background: #42b883;
    color: white;
    width: 100%;
}

.btn-submit:hover {
    background: #369870;
}

/* Conditional Content */
.conditional-section {
    background: #f7f8fa;
    border: 1px solid #e4e6ea;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.warning-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.info-section {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.field-hint {
    font-size: 0.85rem;
    color: #65676b;
    margin-top: 0.25rem;
}

/* Footer */
.main-footer {
    background: #ffffff;
    border-top: 1px solid #dadde1;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.footer-content p {
    color: #65676b;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #1877f2;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .quick-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .container {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-next,
    .btn-prev {
        width: 100%;
        margin: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .watermark {
        font-size: 6rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1877f2;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

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

/* Form validation styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #f02849;
    background-color: #fff5f5;
}

.error-message {
    color: #f02849;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Success states */
.success-message {
    color: #42b883;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 1rem;
}

.modal-message {
    font-size: 1.1rem;
    color: #65676b;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-close {
    background: #1877f2;
    color: white;
    border: none;
    padding: 0.75rem 2.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.modal-close:hover {
    background: #166fe5;
}

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