/* 
 * FincoHost Premium Order Form Design System
 * Focus: Professional Typography & Modern SaaS Aesthetics
 */

:root {
    --primary: #00aeef;
    --primary-dark: #008ecc;
    --primary-light: rgba(0, 174, 239, 0.08);
    --secondary: #6366f1;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    --card-bg: #ffffff;
    --body-bg: #fcfdfe;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 20px 50px rgba(15, 23, 42, 0.05);
}

body {
    background-color: var(--body-bg);
    font-family: var(--font-body);
    color: var(--slate-800);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.025em;
    color: var(--slate-900);
}

input, button, select, textarea, .btn {
    font-family: var(--font-body);
}

/* Master Layout */
#finco-order-form {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    background: radial-gradient(circle at 2% 2%, rgba(0, 174, 239, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 98% 98%, rgba(99, 102, 241, 0.03) 0%, transparent 40%);
}

@media (max-width: 1024px) {
    #finco-order-form {
        grid-template-columns: 1fr;
        padding-top: 30px;
    }
}

/* Global Button Refinement */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--primary);
    border: none;
    box-shadow: 0 4px 14px 0 rgba(0, 174, 239, 0.39);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.45);
}

/* Sidebar Summary */
.finco-summary-sidebar {
    position: sticky;
    top: 30px;
    height: fit-content;
}

.summary-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--slate-100);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.summary-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--slate-900);
}

.summary-card h2 .text-primary {
    background: linear-gradient(90deg, var(--primary), #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.summary-items {
    margin-bottom: 30px;
}

.summary-line-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--slate-100);
}

.summary-line-item:last-child {
    border-bottom: none;
}

.summary-line-item .item-name {
    font-weight: 700;
    color: var(--slate-900);
    font-size: 0.95rem;
    margin-bottom: 2px;
    display: block;
}

.summary-line-item .item-domain-tag {
    font-size: 0.8rem;
    color: var(--slate-500);
    font-weight: 500;
}

.summary-line-item .item-cost {
    text-align: right;
}

.summary-line-item .amount {
    font-weight: 700;
    color: var(--slate-900);
    font-size: 1rem;
}

.summary-line-item .cycle {
    font-size: 0.75rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.summary-totals {
    background: var(--slate-50);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 25px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row span:first-child {
    color: var(--slate-500);
    font-weight: 500;
}

.summary-row span:last-child {
    font-weight: 700;
    color: var(--slate-900);
}

.total-section {
    padding-top: 10px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.total-row .label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.total-row .price {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--slate-900);
    line-height: 1;
    letter-spacing: -0.04em;
}

.btn-complete-order {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 174, 239, 0.3);
    font-family: var(--font-heading);
}

.btn-complete-order:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 174, 239, 0.4);
    filter: brightness(1.05);
}

.btn-complete-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--slate-300);
    box-shadow: none;
}

/* Left Content Styles */
.form-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 45px;
    margin-bottom: 40px;
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--slate-900);
    letter-spacing: -0.03em;
}

.section-title .step-number {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.2);
}

/* Domain Selection UI */
.domain-options {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.domain-option-btn {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--slate-200);
    background: white;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--slate-600);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.domain-option-btn.active {
    background: var(--slate-900);
    color: white;
    border-color: var(--slate-900);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.domain-search-wrapper input {
    height: 60px;
    padding: 0 25px;
    border-radius: var(--radius-md);
    border: 2px solid var(--slate-200);
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--slate-900);
    width: 100%;
    transition: all 0.2s;
}

.domain-search-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    outline: none;
}

.finco-domain-check-btn {
    height: 60px;
    padding: 0 35px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: var(--radius-md);
}

/* Selected Plan Header */
.selected-plan-header {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--slate-100);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    position: relative;
    border-left: 8px solid var(--primary);
    overflow: hidden;
}

.selected-plan-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 174, 239, 0.02));
    pointer-events: none;
}

.selected-plan-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.selected-plan-header p {
    color: var(--slate-500);
    font-size: 1.05rem;
    max-width: 600px;
}

.selected-plan-header .badge {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-block;
}

/* Form Controls */
.form-control {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--slate-200);
    padding: 12px 16px;
    font-family: var(--font-body);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--slate-700);
    margin-bottom: 8px;
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-section {
    animation: fadeInUp 0.5s ease-out both;
}

.form-section:nth-child(2) { animation-delay: 0.1s; }
.form-section:nth-child(3) { animation-delay: 0.2s; }

/* Utils */
.w-hidden { display: none !important; }
.text-muted { color: var(--slate-500) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: #10b981 !important; }
.italic { font-style: italic; }
