/* Trading Institut standalone styles */

:root {
    --primary: #E8431F;
    --primary-dark: #d03a1b;
    --accent: #FF9800;
    --text: #2d3436;
    --text-light: #636e72;
    --bg: #ffffff;
    --bg-light: #f9fafb;
    --panel: #ffffff;
    --success: #4cd137;
    --error: #e84118;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all .25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
}
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero { position: relative; padding: 140px 0 60px; background: linear-gradient(135deg, rgba(232,67,31,.06), rgba(255,152,0,.06)); }
.hero .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.6rem; margin: 0 0 10px; line-height: 1.2; }
.hero p { color: var(--text-light); margin: 0 0 16px; max-width: 560px; }
.highlight { color: var(--primary); position: relative; }
.highlight::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 6px; width: 100%; border-radius: 4px; background: rgba(232,67,31,.25); }

.ti-logos { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ti-logos img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: var(--shadow); padding: 4px; }
.ti-fallback { width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 800; box-shadow: var(--shadow); }

.hero-image .image-container img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }

/* Section header */
.section-header { text-align: center; margin: 10px 0 30px; }
.section-header h2 { font-size: 2rem; margin: 0 0 8px; }
.section-header p { color: var(--text-light); margin: 0; }

/* Grid */
.ti-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }

/* Cards */
.ti-card { background: var(--panel); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid #eee; }
.ti-card-body { padding: 20px; }
.ti-card-head { padding: 24px 20px 10px; text-align: center; }
.ti-card-icons { display:flex; justify-content:center; gap:14px; margin-bottom: 8px; }
.ti-mini-icon { width: 36px; height: 36px; border-radius: 10px; display:flex; align-items:center; justify-content:center; background: #fff; border:1px solid #eee; box-shadow: var(--shadow); color: var(--primary); }
.ti-icon { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; display:flex; align-items:center; justify-content:center; background: linear-gradient(135deg, rgba(232,67,31,.1), rgba(255,152,0,.1)); color: var(--primary); font-size: 26px; }
.ti-card-head h3 { margin: 0 0 8px; }
.ti-desc { margin: 0; color: var(--text-light); font-size: .95rem; }

/* Form */
.form-group { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="email"], input[type="number"] {
    width: 100%; padding: 12px 12px; border-radius: 10px; border: 1px solid #e7e7e7; background: #fff; font-size: 15px; outline: none; transition: var(--transition);
}
input[type="email"]:focus, input[type="number"]:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,67,31,.15); }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

.ti-inline { display:flex; align-items:center; justify-content:space-between; gap: 10px; color: var(--text-light); }
.ti-form-grid { display:grid; grid-template-columns: 1fr 200px; gap: 12px; align-items: end; }

.ti-price-lines { border-top: 1px dashed #e2e2e2; margin-top: 8px; padding-top: 8px; }
.ti-total { font-size: 22px; font-weight: 800; color: var(--primary); }

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; padding: 14px 16px; border-radius: 12px; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff; font-weight: 700; letter-spacing: .2px; box-shadow: 0 10px 20px rgba(232,67,31,.18);
    transition: var(--transition);
}
.btn-primary:hover { filter: brightness(1.03); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; }

.price-note { color: var(--text-light); font-size: .9rem; margin: 8px 0 0; }

/* Pills / Status */
.pill { display:inline-flex; align-items:center; gap:8px; padding:10px 12px; border-radius:999px; font-weight:600; font-size:13px; }
.pill.info { background: rgba(232,67,31,.08); color: var(--primary); border: 1px solid rgba(232,67,31,.25); }
.pill.success { background: rgba(76,209,55,.12); color: var(--success); border: 1px solid rgba(76,209,55,.35); }
.pill.error { background: rgba(232,65,24,.10); color: var(--error); border: 1px solid rgba(232,65,24,.35); }
.hidden { display:none !important; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(0,0,0,0.15); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }

/* Secondary card (info list) */
.ti-list { list-style:none; padding:0; margin:0; }
.ti-list li { display:flex; align-items:center; gap:10px; padding: 10px 0; border-bottom: 1px dashed #f0f0f0; }
.ti-list li:last-child { border-bottom: 0; }
.ti-list i { color: var(--success); }

/* Footer */
.footer { text-align:center; color:#9aa0a6; font-size:.9rem; padding: 24px 0; }

/* Responsive */
@media (max-width: 992px){
    .hero .container { grid-template-columns: 1fr; text-align:center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .ti-grid { grid-template-columns: 1fr; }
}

