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

:root {
    --site-shell-max-width: 1100px;
    --site-page-gutter: clamp(12px, 2.4vw, 22px);
}

/* Screen reader only - for SEO and accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #6631e1 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--site-page-gutter);
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: clamp(24px, 3vw, 48px);
    max-width: var(--site-shell-max-width);
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.container.wide {
    max-width: var(--site-shell-max-width);
}

h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 40px;
    font-size: 16px;
}

.privacy-notice {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0e6ff 100%);
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.privacy-notice,
.terms-content,
.contact-box,
.contact-content {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-icon {
    font-size: 32px;
    flex-shrink: 0;
    margin-top: 4px;
}

.privacy-content {
    flex: 1;
}

.privacy-content strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.privacy-content p {
    font-size: 14px;
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
}

.upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f7fafc;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #667eea;
    background: #edf2f7;
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #667eea;
    background: #e6f0ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #667eea;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 14px;
    color: #718096;
}

.upload-hint span {
    color: #667eea;
    font-weight: 600;
}

input[type="file"] {
    display: none;
}

.format-selector {
    margin-top: 32px;
    display: none;
}

.format-selector.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.file-info {
    background: #edf2f7;
    padding: var(--site-page-gutter);
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.file-icon {
    font-size: 32px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.file-size {
    font-size: 14px;
    color: #718096;
}

.remove-file-btn {
    background: #e53e3e;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-file-btn:hover {
    background: #c53030;
    transform: scale(1.1);
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    color: #2d3748;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

select:hover {
    border-color: #cbd5e0;
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.convert-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.convert-btn:active {
    transform: translateY(0);
}

.progress {
    margin-top: 20px;
    display: none;
}

.progress.active {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* Multiple Files Styling */
.multi-file-list {
    margin-bottom: 24px;
    width: 100%;
}

.multi-file-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.multi-file-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.multi-file-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    width: 100%;
}

.multi-file-format {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.file-format-select {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.file-format-select:hover {
    border-color: #cbd5e0;
}

.file-format-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.multi-file-item .remove-file-btn {
    margin-left: 0;
    flex-shrink: 0;
}

/* Terms & Conditions Page Styles */
.terms-content {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0e6ff 100%);
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.wide .terms-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .wide .terms-content {
        grid-template-columns: 1fr;
    }
}

.term-item {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.term-item:last-child {
    margin-bottom: 0;
}

.wide .terms-content .term-item {
    margin-bottom: 0;
}

.wide .terms-content .term-item:last-child {
    margin-bottom: 0;
}

.term-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.term-text {
    flex: 1;
}

.term-text p {
    font-size: 15px;
    line-height: 1.7;
    color: #2d3748;
    margin: 0;
}

.back-home {
    text-align: center;
}

.back-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.back-btn:active {
    transform: translateY(0);
}

/* Footer Links */
.footer-links {
    margin-top: 32px;
    margin-left: 0;
    margin-right: 0;
    padding: 24px 0 0 0;
    border-top: 2px solid #e2e8f0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    transition: all 0.2s ease;
    display: inline-block;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Contact Page Styles */
.contact-box {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0e6ff 100%);
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
}

.contact-reasons h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #1a202c;
}

.contact-reasons-intro {
    margin: 0 0 18px 0;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
}

.wide .terms-content.contact-reasons {
    display: block;
}

.contact-reason-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-reason-card {
    display: block;
    cursor: pointer;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #d6ddf5;
    border-radius: 12px;
    padding: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.contact-reason-card:hover {
    transform: scale(1.02);
    border-color: #aebfed;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.18);
}

.contact-reason-card:active {
    transform: scale(0.99);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.12);
}

.contact-reason-card:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.35);
    outline-offset: 2px;
}

.contact-reason-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #2d2c80;
    margin-bottom: 4px;
}

.contact-reason-text {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: #4a5568;
}

.contact-reason-cta {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #5564a8;
}

.support-trust-microcopy {
    font-size: 13px;
    color: #4a5568;
    margin: 0 0 12px 0;
}

.contact-guidance-list {
    margin: 0;
    padding-left: 18px;
    color: #2d3748;
}

.contact-guidance-list li {
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 6px 0;
}

.contact-guidance-list li:last-child {
    margin-bottom: 0;
}

.contact-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.required {
    color: #e53e3e;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #2d3748;
    background: white;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Inline Links */
.inline-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.inline-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    body {
        align-items: flex-start;
        padding: 16px;
    }

    .container {
        border-radius: 20px;
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .container {
        border-radius: 18px;
        padding: 24px 16px;
    }

    h1 {
        font-size: 28px;
    }

    .subtitle {
        margin-bottom: 28px;
        font-size: 15px;
    }

    .privacy-notice,
    .terms-content,
    .contact-box,
    .contact-content {
        padding: 18px;
    }

    .contact-reason-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .privacy-notice {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .privacy-icon {
        margin-top: 0;
    }

    .footer-links {
        margin-top: 24px;
        padding-top: 18px;
    }

    .footer-links a {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 22px 14px;
    }

    h1 {
        font-size: 24px;
    }
}


