/* register.css - Claude-inspired Premium Registration UI */

/* Variables that match the design system */
:root {
    color-scheme: light only;
    --parchment: #f5f4ed;
    --ivory: #faf9f5;
    --white: #ffffff;
    --terracotta: #c96442;
    --coral: #d97757;
    --focus-blue: #3898ec;
    
    --text-primary: #141413;
    --text-secondary: #5e5d59;
    --text-tertiary: #87867f;
    
    --border-cream: #f0eee6;
    --border-warm: #e8e6dc;
    --ring-warm: #d1cfc5;
    
    --font-serif: "Anthropic Serif", Georgia, serif;
    --font-sans: "Anthropic Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Page Reset & Base */
body.register-page {
    background-color: var(--parchment);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    margin-top: 0;
    color: var(--text-primary);
}

/* Minimal Navbar */
.minimal-nav {
    background: transparent;
    border-bottom: 1px solid var(--border-cream);
    padding: 24px 0;
    position: relative;
    box-shadow: none;
    backdrop-filter: none;
}
.minimal-nav .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.minimal-nav .logo {
    color: var(--terracotta); /* Standout brand color */
}
.minimal-nav .back-link {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}
.minimal-nav .back-link:hover {
    color: var(--text-primary);
}

/* Hero Section */
.register-hero {
    padding: 80px 24px 40px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.register-hero .badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12px;
    color: var(--terracotta);
    padding: 4px 12px;
    border: 1px solid var(--border-warm);
    border-radius: 20px;
    margin-bottom: 24px;
    background: var(--ivory);
}
.register-title {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.register-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Container */
.registration-main {
    padding-bottom: 120px;
}
.form-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}
form#syncodes-register-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Section Styling */
.form-section {
    background-color: var(--ivory);
    border: 1px solid var(--border-cream);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}
.section-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-cream);
    padding-bottom: 24px;
}
.section-header h2 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 8px;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
}

/* Form Groups & Inputs */
.form-group {
    margin-bottom: 28px;
}
.form-group:last-child {
    margin-bottom: 0;
}
.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
}
.form-row .half {
    flex: 1;
    margin-bottom: 0;
}

label {
    display: block;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.required {
    color: var(--terracotta);
}
.optional {
    color: var(--text-tertiary);
    font-weight: 400;
    font-size: 13px;
    margin-left: 4px;
}
.helper-text {
    display: block;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-primary);
    background-color: var(--white);
    border: 1px solid var(--border-warm);
    border-radius: 12px;
    transition: all 0.2s var(--ease-out);
    box-sizing: border-box;
    outline: none;
}
textarea {
    resize: vertical;
    min-height: 100px;
}
input:focus, textarea:focus {
    border-color: var(--focus-blue);
    box-shadow: 0 0 0 3px rgba(56, 152, 236, 0.15);
}
input::placeholder, textarea::placeholder {
    color: #b0aea5;
}

/* Radio & Checkbox Cards */
.radio-grid, .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.radio-card, .checkbox-card {
    display: block;
    position: relative;
    cursor: pointer;
}
.radio-card input, .checkbox-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.radio-content, .checkbox-content {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background-color: var(--white);
    border: 1px solid var(--border-warm);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-secondary);
    transition: all 0.2s var(--ease-out);
}
.radio-card:hover .radio-content, .checkbox-card:hover .checkbox-content {
    border-color: var(--ring-warm);
    background-color: #fdfdfc;
}
.radio-card input:checked + .radio-content, 
.checkbox-card input:checked + .checkbox-content {
    border-color: var(--terracotta);
    background-color: rgba(201, 100, 66, 0.05);
    color: var(--text-primary);
    font-weight: 500;
}

/* Inline & Stack Radios */
.radio-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 12px;
}
.radio-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
}
.radio-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}
.radio-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
}
input[type="radio"], input[type="checkbox"] {
    accent-color: var(--terracotta);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Payment Section specific styling */
.payment-section {
    border: 2px solid var(--border-warm); /* more prominent */
    background: #fdfdfa; /* slightly lighter to stand out */
}
.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-cream);
    padding-bottom: 24px;
    margin-bottom: 24px;
}
.payment-header h2 { margin: 0; }
.fee-badge {
    background-color: var(--terracotta);
    color: var(--ivory);
    font-size: 24px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--terracotta);
}

.payment-instructions {
    text-align: center;
    margin-bottom: 24px;
}
.instruction-main {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.upi-id {
    display: inline-block;
    font-family: "Anthropic Mono", monospace, Arial;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 12px 24px;
    background: var(--white);
    border: 1px dashed var(--terracotta);
    color: var(--terracotta);
    border-radius: 12px;
    margin-bottom: 16px;
}
.instruction-note {
    font-size: 14px;
    color: var(--text-secondary);
    background: #fdf6f4;
    padding: 12px;
    border-radius: 8px;
    margin: 0;
}
.instruction-note strong {
    color: var(--terracotta);
}

.qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}
.qr-image {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border-warm);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 12px;
    background: var(--white);
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}
.file-input {
    position: absolute;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    outline: none;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.file-drop-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background-color: var(--white);
    border: 1px dashed var(--border-warm);
    border-radius: 12px;
    transition: all 0.2s;
    text-align: center;
}
.file-input:hover + .file-drop-area,
.file-input:focus + .file-drop-area {
    border-color: var(--terracotta);
    background-color: #fdfdfc;
}
.upload-icon {
    width: 32px;
    height: 32px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}
.file-msg {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.file-submsg {
    font-size: 12px;
    color: var(--text-tertiary);
}

.support-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-cream);
}

/* Submit Button Area */
.form-submit-area {
    text-align: center;
    margin-top: 16px;
}
.submit-btn {
    background-color: var(--terracotta);
    color: var(--ivory);
    border: none;
    padding: 18px 48px;
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 0 0 1px var(--terracotta), 0 4px 12px rgba(201, 100, 66, 0.2);
    transition: all 0.2s var(--ease-out);
    width: 100%;
    max-width: 400px;
}
.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 0 1px var(--terracotta), 0 8px 24px rgba(201, 100, 66, 0.3);
}
.submit-disclaimer {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.8s var(--ease-out) both;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .form-section {
        padding: 32px 20px;
    }
}
@media (max-width: 480px) {
    .register-title { font-size: 32px; }
    .form-section { padding: 24px 16px; }
    .section-header h2 { font-size: 24px; }
    .radio-grid, .checkbox-grid { grid-template-columns: 1fr; }
}
