* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    opacity: 0.95;
    font-size: 1.1em;
}

main {
    padding: 40px;
}

section {
    margin-bottom: 50px;
}

section:last-child {
    margin-bottom: 0;
}

section h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 700;
}

section h3 {
    color: #764ba2;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 600;
}

section p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

section ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

section li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.7;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

small {
    display: block;
    margin-top: 8px;
    color: #999;
    font-size: 0.9em;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    width: 100%;
    font-family: inherit;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Status Message Styles */
.status-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    display: none;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.status-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.status-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.status-message.loading {
    display: block;
    background-color: #e2e3e5;
    color: #383d41;
    border: 2px solid #d6d8db;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Styles */
details {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

details:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

summary {
    padding: 18px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    user-select: none;
    transition: background 0.2s;
}

summary:hover {
    background: #f0f0f0;
}

details[open] summary {
    background: #e8f4f8;
}

details p {
    margin: 0;
    padding: 16px 18px;
    color: #555;
    background: white;
}

/* Footer Styles */
footer {
    background: #f8f9fa;
    padding: 30px 20px;
    text-align: center;
    color: #666;
    border-top: 1px solid #ddd;
}

footer p {
    margin: 8px 0;
}

footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

footer a:hover {
    color: #764ba2;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    header {
        padding: 30px 20px;
    }

    main {
        padding: 25px;
    }

    section h2 {
        font-size: 1.5em;
    }

    section h3 {
        font-size: 1.2em;
    }

    .btn-primary {
        padding: 14px 30px;
        font-size: 1em;
    }

    input[type="text"],
    input[type="email"] {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5em;
    }

    header {
        padding: 25px 15px;
    }

    main {
        padding: 20px;
    }

    section {
        margin-bottom: 30px;
    }

    section h2 {
        font-size: 1.3em;
    }

    section h3 {
        font-size: 1.1em;
    }

    summary {
        padding: 14px;
        font-size: 0.95em;
    }

    details p {
        padding: 14px;
    }
}

/* Deletion Instructions and Email Template Styles */
.deletion-instructions {
    background: #f0f7ff;
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.deletion-instructions h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.deletion-instructions ol {
    margin-left: 20px;
    color: #555;
    line-height: 1.8;
}

.deletion-instructions li {
    margin-bottom: 12px;
}

.deletion-instructions ul {
    margin: 10px 0 10px 20px;
    font-size: 0.95em;
}

.email-template {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.email-template h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.template-box {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.6;
    color: #333;
    background: white;
    resize: vertical;
    min-height: 200px;
    margin-bottom: 12px;
    transition: border-color 0.3s;
}

.template-box:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-secondary.copied {
    background: #28a745;
}

/* Email button as link */
#emailButton {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 20px;
}

/* Logo Styling */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    animation: logoFadeIn 0.6s ease-out;
}

.logo {
    max-width: 120px;
    height: auto;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo {
        max-width: 100px;
    }

    .logo-container {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 80px;
    }

    .logo-container {
        margin-bottom: 10px;
    }
}
