/* ============================================
   GetQuoteIB Workshop Registration Form Styles
   ============================================ */

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

:root {
    --brand-primary: #0046AD;
    --brand-hover: #003d94;
    --brand-light: rgba(0, 70, 173, 0.1);
    --success-color: #28a745;
    --error-color: #dc3545;
    --text-primary: #1f2933;
    --text-secondary: #5a6774;
    --bg-light: #f8f9fa;
    --border-color: #e4e7eb;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Topbar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.topbar-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    flex: 1;
    max-width: 500px;
    white-space: nowrap;
}

.topbar-spacer {
    width: 100px;
}

@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        text-align: center;
    }
    .topbar-spacer {
        display: none;
    }
    .topbar-text {
        max-width: 100%;
    }
}

.topbar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 10px 0 30px;
}

/* Card */
.card {
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-inner {
    padding: 40px;
}

@media (max-width: 600px) {
    .card-inner {
        padding: 25px 20px;
    }
}

/* Form */
h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 20px;
    text-align: center;
}

.form-lead {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--brand-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.lead-icon {
    width: 40px;
    height: 40px;
    background: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lead-icon svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.lead-title {
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 4px;
}

.lead-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Steps */
.step {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.step:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.field-note {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Fields */
.field {
    display: block;
    margin-bottom: 20px;
}

.field .label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-light);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9aa7b4;
}

.field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6774' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 500px) {
    .field-group {
        grid-template-columns: 1fr;
    }
}

/* Button */
button.primary {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #0066cc 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 70, 173, 0.3);
}

button.primary:hover {
    background: linear-gradient(135deg, var(--brand-hover) 0%, #0055bb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 70, 173, 0.4);
}

button.primary:active {
    transform: translateY(0);
}

button.primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form Status */
.form-status {
    text-align: center;
    padding: 12px;
    margin-top: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
}

.form-status.hidden {
    display: none;
}

/* Success Message */
.success {
    text-align: center;
    padding: 40px 20px;
}

.success.hidden {
    display: none;
}

.success-card {
    max-width: 400px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--success-color);
}

.success h2 {
    color: var(--success-color);
    margin-bottom: 10px;
}

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

.success-note {
    font-size: 14px;
    margin-top: 20px;
}

/* Workshop Info Section */
.workshop-info {
    margin-top: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.workshop-info h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
}

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.workshop-card {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.workshop-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 15px rgba(0, 70, 173, 0.1);
}

.workshop-number {
    width: 36px;
    height: 36px;
    background: var(--brand-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
}

.workshop-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.workshop-day {
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-primary);
    margin-bottom: 8px;
}

.workshop-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-note {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.8;
}

/* Loading State */
.loading button.primary {
    position: relative;
    color: transparent;
}

.loading button.primary::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
}

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

/* Validation States */
.field input.invalid,
.field select.invalid {
    border-color: var(--error-color);
}

.field input.valid,
.field select.valid {
    border-color: var(--success-color);
}

/* Hidden utility */
.hidden {
    display: none !important;
}
