/*
Theme Name: Signup - surveoo BD
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A simple signup prelander theme for microtask campaigns.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simple-signup
*/

:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    --accent-color: #10B981;
    --accent-hover: #059669;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --bg-color: #F9FAFB;
    --card-bg: #ffffff;
    --border-color: #E5E7EB;
    --error-color: #EF4444;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.view {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    animation: viewFadeIn 0.5s ease-out;
}

.view.active { display: flex; }

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

.hero {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3f4f6 100%);
    padding: 4rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.hero-content { max-width: 600px; animation: fadeIn 0.8s ease-out; }

h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2.5rem; }

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-family);
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.5);
}

.cta-button:active { transform: translateY(-1px); }

.features {
    background-color: white;
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.features-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover { transform: translateY(-5px); }

.icon { font-size: 2.5rem; margin-bottom: 1rem; display: inline-block; }
.feature-title { font-weight: 700; margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-desc { font-size: 0.95rem; color: var(--text-muted); }

footer {
    background-color: #1F2937;
    color: #9CA3AF;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

footer a { color: white; text-decoration: none; }

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

/* --- Signup Form View --- */
.signup-view {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3f4f6 100%);
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.back-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    font-family: var(--font-family);
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateX(-2px);
}

.signup-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    animation: cardSlideIn 0.5s ease-out;
}

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.signup-header { text-align: center; margin-bottom: 2rem; }

.signup-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.signup-header p { color: var(--text-muted); font-size: 0.95rem; }

.form-group { margin-bottom: 1.25rem; position: relative; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.input-wrapper { position: relative; }

.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 0.85rem 0.85rem 0.85rem 2.75rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-family);
    color: var(--text-main);
    background: var(--bg-color);
    transition: all 0.25s ease;
    outline: none;
}

.form-input::placeholder { color: var(--text-light); }

.form-input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-input.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.error-message {
    font-size: 0.8rem;
    color: var(--error-color);
    margin-top: 0.35rem;
    display: none;
    align-items: center;
    gap: 0.3rem;
}

.error-message.visible { display: flex; }

/* --- Phone field with BD prefix --- */
.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-color);
    transition: all 0.25s ease;
    overflow: hidden;
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.phone-input-wrapper.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.75rem;
    background: #f3f4f6;
    border-right: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    user-select: none;
    cursor: default;
}

.phone-prefix .bd-flag { font-size: 1.15rem; line-height: 1; }

.phone-input-wrapper .form-input {
    border: none;
    border-radius: 0;
    background: transparent;
    padding-left: 0.85rem;
    box-shadow: none !important;
}

.phone-input-wrapper .form-input:focus { box-shadow: none !important; }

/* --- Informational note (replaces fabricated charge/reward claims) --- */
.info-note {
    background: #f3f4f6;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.continue-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.continue-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

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

.continue-btn.loading { pointer-events: none; opacity: 0.85; }

.continue-btn .spinner {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto;
}

.continue-btn.loading .btn-text { display: none; }
.continue-btn.loading .spinner { display: block; }

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

.form-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terms-link { color: var(--primary-color); text-decoration: none; font-weight: 600; }
.terms-link:hover { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 600px) {
    h1 { font-size: 2.25rem; }
    .cta-button { font-size: 1.25rem; width: 100%; padding: 1.1rem; }
    .hero { padding: 3rem 1rem; }
    .signup-card { padding: 2rem 1.5rem; }
    .back-btn { top: 1rem; left: 1rem; font-size: 0.85rem; padding: 0.5rem 1rem; }
}
