/* Routing Forms - Base Styles (Calendly-inspired with Optimised Mining branding) */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    color: #0f172a;
}

/* Header */
.header-wrapper {
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 60px;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 18px;
    color: #0f172a;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

/* Main Container */
.routing-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 60px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Left Side - Information */
.info-section {
    padding-right: 40px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.routing-description {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.5;
    font-weight: 400;
}

.benefits {
    margin-bottom: 32px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #475569;
    line-height: 1.4;
}

.check-icon {
    flex-shrink: 0;
    opacity: 0.75;
}

/* Right Side - Form */
.form-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.form-container {
    padding: 40px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 24px;
}

/* Form Styles - Name/Email Type */
.routing-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

label {
    font-weight: 500;
    color: #475569;
    font-size: 14px;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.15s ease;
    background: #ffffff;
    font-family: inherit;
    color: #0f172a;
}

input:focus {
    outline: none;
    border-color: #94a3b8;
}

input::placeholder {
    color: #94a3b8;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    min-height: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.error-message.show {
    opacity: 1;
}

input.error {
    border-color: #ef4444;
}

/* Form Styles - Multiple Choice Type */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.option-item {
    position: relative;
}

.option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s ease;
    background: #ffffff;
    font-size: 15px;
    color: #334155;
}

.option-label:hover {
    border-color: #cbd5e1;
}

.option-item input[type="radio"]:checked + .option-label {
    border-color: #64748b;
    background: #ffffff;
}

.option-radio {
    width: 16px;
    height: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.15s ease;
}

.option-item input[type="radio"]:checked + .option-label .option-radio {
    border-color: #475569;
    border-width: 1.5px;
}

.option-item input[type="radio"]:checked + .option-label .option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #475569;
    border-radius: 50%;
}

/* Button */
.continue-btn {
    width: 100%;
    padding: 14px 24px;
    background: #1DA1F2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.continue-btn:hover:not(:disabled) {
    background: #1a91da;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.continue-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.continue-btn.loading {
    background: #1a91da;
    color: white;
    cursor: wait;
    position: relative;
    padding-right: 48px;
}

.continue-btn.loading::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Error and Success Banners */
.error-banner,
.success-banner {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.success-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.error-banner.show,
.success-banner.show {
    display: block;
}

/* Contact Details (optional footer) */
.contact-details {
    border-top: 1px solid #e2e8f0;
    padding-top: 32px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.contact-item svg {
    flex-shrink: 0;
}

.contact-item a {
    color: #64748b;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #475569;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        padding: 16px 24px;
    }
    
    .routing-wrapper {
        padding: 40px 24px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .info-section {
        padding-right: 0;
    }
    
    .benefits {
        margin-bottom: 0;
    }
    
    h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .routing-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .benefit-item {
        font-size: 14px;
        margin-bottom: 9px;
    }
    
    .form-container {
        padding: 32px 24px;
    }
    
    h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        gap: 20px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .routing-description {
        font-size: 14px;
    }
    
    .benefit-item {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .form-container {
        padding: 24px 20px;
    }
    
    .option-label {
        padding: 11px 13px;
        font-size: 14px;
    }
    
    input[type="text"],
    input[type="email"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

