:root {
    --bg-color: #DC5829;
    --panel-bg: rgba(255, 255, 255, 0.15);
    --border-color: rgba(255, 255, 255, 0.3);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.85);
    --primary: #ffffff;
    --primary-hover: #f1f5f9;
    --secondary: rgba(255, 255, 255, 0.25);
    --secondary-hover: rgba(255, 255, 255, 0.35);
    --font-main: 'Inter', sans-serif;
    --radius-lg: 24px;
    --radius-md: 12px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.1), transparent 25%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 60px;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 36px 0 28px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo .highlight {
    color: rgba(255, 255, 255, 0.7);
}

/* Screens */
.app-main {
    display: flex;
    justify-content: center;
}

.app-main.centered {
    justify-content: center;
}

.hidden {
    display: none !important;
}

/* Glass card */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 44px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    width: 100%;
}

.feedback-card {
    max-width: 640px;
    width: 100%;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 36px;
    line-height: 1.6;
}

/* Form fields */
.field-group {
    margin-bottom: 28px;
}

.field-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.required {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.optional {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    font-size: 0.85rem;
}

.field-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--text-main);
    resize: vertical;
    min-height: 180px;
    line-height: 1.6;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.field-textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.field-textarea:focus {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.14);
}

.field-textarea.error {
    border-color: rgba(255, 200, 180, 0.8);
}

.field-error {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 220, 200, 0.95);
    display: none;
}

.field-error.visible {
    display: block;
}

/* File drop zone */
.file-drop-zone {
    border: 1.5px dashed rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: rgba(255, 255, 255, 0.05);
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
}

.file-drop-zone svg {
    opacity: 0.65;
    flex-shrink: 0;
}

.drop-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.drop-link {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.drop-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

/* File list */
.file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.88rem;
}

.file-item-icon {
    opacity: 0.7;
    flex-shrink: 0;
}

.file-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.file-item-size {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.file-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    padding: 2px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.file-item-remove:hover {
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: #DC5829;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
}

.btn-submit {
    margin-top: 8px;
}

.btn-new {
    margin-top: 28px;
    padding: 12px 28px;
}

/* Loading spinner inside button */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(220, 88, 41, 0.3);
    border-top-color: #DC5829;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Thank you screen */
.thankyou-card {
    text-align: center;
    padding-top: 56px;
    padding-bottom: 56px;
}

.thankyou-icon {
    width: 96px;
    height: 96px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.thankyou-text {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 14px;
    line-height: 1.6;
}

.thankyou-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 600px) {
    .glass-panel {
        padding: 32px 24px;
    }

    .page-title {
        font-size: 1.6rem;
    }
}
