/**
 * Male Model Cash - Dark Theme Styles
 */

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

:root {
    --bg-body: #0d0d0d;
    --bg-card: #1a1a1a;
    --bg-input: #252525;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-muted: #666666;
    --accent: #c41e3a;
    --accent-hover: #a01830;
    --success: #22c55e;
    --error: #ef4444;
    --border: #2a2a2a;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

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

/* Language Switcher */
.lang-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 15px 0;
}

.lang-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--bg-card);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    transform: scale(1.1);
}

.lang-btn.active {
    border-color: var(--accent);
}

.lang-btn .flag {
    font-size: 1.5rem;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 0;
}

.logo {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

@media (max-width: 500px) {
    .logo {
        font-size: 2rem;
        letter-spacing: 2px;
    }
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Age Banner */
.age-banner {
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Form Sections */
.form-section {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.form-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.req {
    color: var(--accent);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px; /* Prevents iOS zoom */
    font-family: inherit;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.2);
}

input.error,
select.error,
textarea.error {
    border-color: var(--error);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

select option {
    background: var(--bg-body);
    color: var(--text-primary);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Input with prefix */
.input-prefix {
    display: flex;
    align-items: stretch;
}

.input-prefix span {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--border);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    color: var(--text-muted);
    font-weight: 500;
}

.input-prefix input {
    border-radius: 0 6px 6px 0;
}

/* Toggle Buttons (Yes/No) */
.toggle-group {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.toggle-btn {
    flex: 1;
    max-width: 120px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn:hover {
    border-color: var(--accent);
}

.toggle-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Upload Section */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media (max-width: 700px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }
}

.upload-zone {
    background: var(--bg-input);
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    transition: border-color 0.2s;
    position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
}

.upload-zone.error {
    border-color: var(--error);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.upload-zone h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.upload-zone p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.upload-area {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: background 0.2s;
}

.upload-area:hover {
    background: var(--border);
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.upload-counter {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Preview Grid */
.preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.preview-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Submit Section */
.submit-section {
    text-align: center;
    padding: 30px 0;
}

.btn-submit {
    width: 100%;
    max-width: 400px;
    padding: 16px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: inherit;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    position: relative;
}

.btn-submit:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit.loading .btn-text {
    visibility: hidden;
}

.btn-submit.loading .btn-spinner {
    display: block;
}

.btn-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.consent {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Error Box */
.error-box {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--error);
    color: #ff6b6b;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

/* Honeypot */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Success Page */
.success-page .header {
    padding-bottom: 10px;
}

.success-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: white;
    font-size: 3rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.success-content h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--success);
}

.reference-box {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 20px 30px;
    display: inline-block;
    margin-bottom: 25px;
}

.ref-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.ref-value {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--accent);
    letter-spacing: 1px;
}

.success-content > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.social-follow {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.social-follow a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.social-follow a:hover {
    text-decoration: underline;
}

.btn-link {
    display: inline-block;
    padding: 12px 30px;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-link:hover {
    background: var(--border);
}
