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

body {
    font-family: 'Sofia Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    background: white;
    border-radius: 0;
    border: 1px solid #e5e5e5;
    box-shadow: none;
    padding: 48px;
    max-width: 700px;
    width: 100%;
    overflow: visible;
    position: relative;
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fafafa;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
    color: #4a4a4a;
}

.lang-btn.active {
    background: #3a3a3a;
    color: white;
    border-color: #3a3a3a;
}

h1 {
    color: #3a3a3a;
    margin-bottom: 12px;
    text-align: left;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.subtitle {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

h2 {
    color: #2d2d2d;
    margin-bottom: 32px;
    margin-top: 48px;
    font-size: 24px;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

h2:first-of-type {
    margin-top: 0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 8px;
}

label {
    font-weight: 500;
    color: #2d2d2d;
    font-size: 16px !important;
    display: block;
    margin-bottom: 0 !important;
}


/* Custom Select Styling - SlimSelect will handle most styling */
.custom-select,
#statementSelect {
    width: 100%;
    padding: 8px;
}

button {
    background: #2d2d2d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0;
    align-self: flex-start;
}

button[type="submit"] {
    background: #2563eb;
    color: white;
}

button[type="submit"]:hover {
    background: #1d4ed8;
}

button[type="submit"]:active {
    background: #1e40af;
}

button:hover {
    background: #3a3a3a;
}

button:active {
    background: #1a1a1a;
}

#output {
    margin-top: 48px;
    padding: 32px;
    border: 1px solid #d0d0d0;
    background: #fafafa;
    border-radius: 4px;
}

#output h2 {
    margin-top: 0;
    margin-bottom: 28px;
    color: #2d2d2d;
    font-size: 26px;
}

.email-options {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 0;
}

.email-option {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}

.email-option h3 {
    color: #2d2d2d;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.email-option p {
    color: #666;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.mailto-link {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    margin-right: 0;
    font-size: 15px;
}

.mailto-link:hover {
    background: #1d4ed8;
}


.copy-field {
    margin-bottom: 20px;
}

.copy-field label {
    display: block;
    font-weight: 500;
    color: #2d2d2d;
    font-size: 14px;
    margin-bottom: 8px;
}

.field-with-button {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.field-with-button input[type="text"],
.field-with-button textarea {
    flex: 1 1 auto;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: white;
    font-family: inherit;
    overflow-x: auto;
}

.field-with-button textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.field-with-button input[type="text"]:focus,
.field-with-button textarea:focus {
    outline: none;
    border-color: #2d2d2d;
}

.copy-field-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    margin-top: 0;
    flex-shrink: 0;
    width: 100px;
    text-align: center;
    align-self: flex-start;
    box-sizing: border-box;
}

.copy-field-btn:hover {
    background: #047857;
}

.copy-field-btn.copied {
    background: #6b7280;
}

.success-message {
    background: #f0f0f0;
    color: #1a1a1a;
    padding: 10px 12px;
    border-radius: 4px;
    margin-top: 12px;
    display: none;
    font-size: 14px;
    border: 1px solid #d0d0d0;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 10px 12px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 14px;
    border: 1px solid #fcc;
}

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

.faq-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.faq-section h2 {
    margin-bottom: 24px;
}

.faq-item {
    margin-bottom: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    background: white;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: #d0d0d0;
}

.faq-item.active {
    border-color: #2d2d2d;
    background: white;
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: #2d2d2d;
    transition: background-color 0.2s, color 0.2s;
    margin: 0;
}

.faq-question:hover {
    background-color: #f9f9f9;
    color: #2d2d2d;
}

.faq-icon {
    font-size: 20px;
    font-weight: 300;
    color: #666;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 10px 20px 20px 20px;
    opacity: 1;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.3s ease-out 0.1s;
}

.faq-answer p {
    color: #666;
    line-height: 1.4;
    font-weight: 500;
    margin: 0;
    font-size: 14px;
}

.faq-answer a {
    color: #2d2d2d;
    text-decoration: underline;
}

.faq-answer a:hover {
    color: #3a3a3a;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
        align-items: flex-start;
    }
    
    .container {
        padding: 32px 24px;
        padding-top: 60px;
        max-width: 100%;
    }
    
    .lang-switcher {
        top: 12px;
        right: 12px;
    }
    
    .lang-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    form {
        gap: 10px;
    }
    
    label {
        font-size: 14px;
    }
    
    
    
    
    button {
        width: 100%;
        padding: 16px 28px;
        font-size: 16px;
        margin-top: 0;
    }
    
    .email-option {
        padding: 15px;
    }
    
    .email-option h3 {
        font-size: 16px;
    }
    
    .email-option p {
        font-size: 14px;
    }
    
    .mailto-link {
        display: block;
        text-align: center;
        margin-bottom: 10px;
        width: 100%;
        padding: 14px 24px;
    }
    
    .field-with-button {
        flex-direction: row;
        gap: 10px;
    }
    
    .field-with-button input[type="text"],
    .field-with-button textarea {
        width: 100%;
        max-width: none;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .copy-field-btn {
        width: 80px;
        padding: 8px 12px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .faq-section {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 15px;
    }
    
    .faq-icon {
        font-size: 20px;
        margin-left: 10px;
    }
    
    .faq-answer {
        padding: 0 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 10px 15px 15px 15px;
    }
    
    .faq-answer p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 15px;
        padding-top: 50px;
        border-radius: 4px;
    }
    
    .lang-switcher {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    h1 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .email-option {
        padding: 12px;
    }
    
    .faq-question {
        padding: 12px;
        font-size: 14px;
    }
    
    .copy-field {
        margin-bottom: 15px;
    }
}
