/**
 * Gallic Invest - Styles
 */

:root {
    --invest-primary: #3b82f6;
    --invest-dark: #0f172a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
}

.brand-logo {
    width: 32px;
    height: 32px;
    background: var(--invest-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

/* Hero */
.invest-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 4rem 0;
}

.badge-round {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.8;
    line-height: 1.7;
}

/* Round Card */
.round-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    color: #0f172a;
}

.round-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.round-label {
    font-weight: 700;
    font-size: 0.875rem;
}

.round-status {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.status-open {
    background: #dcfce7;
    color: #166534;
}

.status-closed {
    background: #fee2e2;
    color: #991b1b;
}

.status-paused {
    background: #fef3c7;
    color: #92400e;
}

.round-stats {
    margin-bottom: 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
}

.stat-value {
    font-weight: 700;
}

.round-progress .progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.round-progress .progress {
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
}

.round-progress .progress-bar {
    background: var(--invest-primary);
    border-radius: 4px;
}

.round-progress .progress-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* Detail Cards */
.detail-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.detail-card i {
    font-size: 2rem;
    color: var(--invest-primary);
    margin-bottom: 1rem;
}

.detail-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.detail-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.detail-card small {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Step Cards */
.step-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--invest-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.step-card h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* Forms */
.invest-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-card h2 {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.form-card .lead {
    color: #64748b;
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
}

.form-control, .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--invest-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-invest {
    background: var(--invest-primary);
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 700;
    border-radius: 0.5rem;
    border: none;
    width: 100%;
}

.btn-invest:hover {
    background: #2563eb;
    color: white;
}

/* Accreditation */
.accreditation-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.accreditation-option:hover {
    border-color: var(--invest-primary);
}

.accreditation-option.selected {
    border-color: var(--invest-primary);
    background: rgba(59, 130, 246, 0.05);
}

.accreditation-option input {
    margin-right: 0.75rem;
}

/* Investment Calculator */
.calculator-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.calculator-result {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
}

.calculator-result .shares {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--invest-primary);
}

.calculator-result .label {
    color: #64748b;
    font-size: 0.875rem;
}

/* Agreement */
.agreement-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.875rem;
    line-height: 1.7;
}

.signature-pad {
    border: 2px dashed #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    background: #fafafa;
}

.signature-input {
    font-family: 'Brush Script MT', cursive;
    font-size: 2rem;
    text-align: center;
    border: none;
    border-bottom: 2px solid #0f172a;
    background: transparent;
    width: 100%;
    max-width: 300px;
}

.signature-input:focus {
    outline: none;
}

/* Wire Instructions */
.wire-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wire-row {
    display: flex;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.wire-row:last-child {
    border-bottom: none;
}

.wire-label {
    color: #64748b;
    font-size: 0.875rem;
}

.wire-value {
    font-weight: 600;
    font-family: monospace;
}

/* Status Timeline */
.status-timeline {
    position: relative;
    padding-left: 2rem;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 2px solid white;
}

.timeline-item.completed::before {
    background: #10b981;
}

.timeline-item.current::before {
    background: var(--invest-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.timeline-item h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-item p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

/* Responsive */
@media (max-width: 767.98px) {
    .invest-hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .round-card {
        margin-top: 2rem;
    }
}
