/* ============================================================
   TheRaSal Contest — Apple-like Form Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.therasal-wrap * {
    box-sizing: border-box;
    font-family: -apple-system, 'SF Pro Display', 'Inter', BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.therasal-wrap {
    max-width: 580px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Header */
.therasal-header {
    text-align: center;
    margin-bottom: 36px;
}

.therasal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.therasal-header .subtitle {
    color: #86868b;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* Card container */
.therasal-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 32px 28px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
}

@media (max-width: 480px) {
    .therasal-card { padding: 24px 20px; border-radius: 16px; }
}

/* Section labels */
.form-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #86868b;
    margin: 24px 0 12px;
}

.form-section-label:first-child { margin-top: 0; }

/* Form groups */
.therasal-form .form-group {
    margin-bottom: 14px;
}

.therasal-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 6px;
    letter-spacing: -0.1px;
}

.therasal-form input[type="text"],
.therasal-form input[type="email"],
.therasal-form input[type="tel"],
.therasal-form select,
.therasal-form textarea {
    width: 100%;
    padding: 13px 16px;
    background: #f5f5f7;
    border: 1.5px solid transparent;
    border-radius: 12px;
    font-size: 0.97rem;
    color: #1d1d1f;
    transition: all 0.18s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.therasal-form input::placeholder,
.therasal-form textarea::placeholder {
    color: #adadb8;
}

.therasal-form input:focus,
.therasal-form select:focus,
.therasal-form textarea:focus {
    background: #fff;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}

/* Select custom arrow */
.select-wrap {
    position: relative;
}
.select-wrap::after {
    content: 'v';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-55%);
    color: #86868b;
    pointer-events: none;
    font-size: 1.1rem;
}
.select-wrap select { padding-right: 36px; }

/* Grid */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}

/* Divider */
.form-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 20px 0;
    border: none;
}

/* Upload area */
.upload-area {
    background: #f5f5f7;
    border: 2px dashed #d1d1d6;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-area:hover,
.upload-area.dragover {
    background: #e8f0fd;
    border-color: #0071e3;
}

.upload-icon-wrap {
    width: 48px;
    height: 48px;
    background: #e4e4e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
    transition: background 0.2s;
}

.upload-area:hover .upload-icon-wrap {
    background: #ccdcf8;
}

.upload-area .upload-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 4px;
}

.upload-area .upload-title span {
    color: #0071e3;
}

.upload-area .upload-hint {
    font-size: 0.75rem;
    color: #86868b;
    margin: 0;
}

.upload-preview {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    background: #e8f8ec;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #1a7f3c;
    font-weight: 500;
    align-items: center;
    gap: 8px;
}

.upload-preview.visible { display: flex; }

/* GDPR */
.gdpr-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #f5f5f7;
    border-radius: 12px;
    margin-top: 4px;
}

.gdpr-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #0071e3;
}

.gdpr-group label {
    font-weight: 400;
    color: #494949;
    font-size: 0.82rem;
    line-height: 1.55;
    cursor: pointer;
    letter-spacing: 0;
}

.gdpr-group label a {
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
}

.gdpr-group label a:hover { text-decoration: underline; }

/* Submit button — centrat, rosu #ee2426, bold */
.therasal-btn {
    display: block;
    width: auto;
    min-width: 220px;
    padding: 15px 36px;
    background: transparent;
    color: #ee2426;
    border: 2px solid #ee2426;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    margin: 18px auto 0;
    letter-spacing: 0.2px;
    text-align: center;
}

.therasal-btn:hover:not(:disabled) {
    background: #ee2426;
    color: #fff;
    box-shadow: 0 4px 16px rgba(238,36,38,0.35);
    transform: translateY(-1px);
}

.therasal-btn:active:not(:disabled) {
    transform: translateY(0);
}

.therasal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Messages */
.therasal-message {
    display: none;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.92rem;
    line-height: 1.55;
}

.therasal-message.success {
    display: block;
    background: #e8f8ec;
    color: #1a5c2f;
}

.therasal-message.error {
    display: block;
    background: #fff1f0;
    color: #c0392b;
}

.therasal-message.info {
    display: block;
    background: #edf4ff;
    color: #1a4a8a;
}

/* Progress bar */
.progress-bar-wrap {
    display: none;
    margin-top: 10px;
    background: #e9e9ec;
    border-radius: 6px;
    overflow: hidden;
    height: 4px;
}

.progress-bar-wrap.visible { display: block; }

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ee2426, #ff6b6b);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 6px;
}

/* Trust badges — centrate */
.trust-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 18px;
    flex-wrap: wrap;
    text-align: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #86868b;
    font-weight: 500;
}
