* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Tajawal', sans-serif; background: #fff; color: #1A1A1A; line-height: 1.6; }

header { background: linear-gradient(135deg, #1A1A1A, #333); color: #fff; padding: 1.5rem 0 0; }
nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: auto; padding: 0 2rem; }
.logo { font-size: 1.8rem; font-weight: 800; color: #FFC107; }
nav ul { display: flex; gap: 2rem; list-style: none; }
nav a { color: #fff; text-decoration: none; font-weight: 500; transition: color .3s; }
nav a:hover { color: #FFC107; }
.hero { text-align: center; padding: 5rem 2rem; }
.hero h1 { font-size: 3rem; font-weight: 800; }
.hero h1 span { color: #FFC107; }
.hero p { font-size: 1.3rem; margin-top: 1rem; opacity: .85; }

.container { max-width: 1100px; margin: auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.bg-light { background: #F8F9FA; }
h2 { font-size: 2.2rem; font-weight: 800; text-align: center; margin-bottom: 3rem; position: relative; }
h2::after { content: ''; display: block; width: 60px; height: 4px; background: #FFC107; margin: .8rem auto 0; border-radius: 2px; }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.form-group { margin-bottom: 1.8rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: .6rem; font-size: 1.1rem; }
select, input[type="range"] { width: 100%; }
select { padding: .9rem 1rem; border: 2px solid #ddd; border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff; transition: border-color .3s; }
select:focus { border-color: #FFC107; outline: none; }
.slider { -webkit-appearance: none; height: 8px; border-radius: 4px; background: #ddd; outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #FFC107; cursor: pointer; box-shadow: 0 2px 8px rgba(255,193,7,.4); }
.slider-labels { display: flex; justify-content: space-between; font-size: .85rem; color: #888; margin-top: .3rem; }

.calc-result { display: flex; flex-direction: column; gap: 1.5rem; }
.result-card { background: #fff; border-radius: 16px; padding: 2rem; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.08); border: 1px solid #f0f0f0; }
.result-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.result-card h3 { font-size: 1rem; color: #888; font-weight: 500; }
.price { font-size: 2.8rem; font-weight: 800; color: #1A1A1A; margin: .5rem 0; direction: ltr; }
.label { color: #888; font-size: .95rem; }

.progress-container { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.progress-bar-wrapper { flex: 1; height: 14px; background: #e9ecef; border-radius: 7px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #FFC107, #FFB300); border-radius: 7px; transition: width .5s ease; }
.progress-percent { font-size: 1.2rem; font-weight: 800; color: #FFC107; min-width: 60px; text-align: left; direction: ltr; }

.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.phase { background: #fff; border-radius: 12px; padding: 1.2rem; text-align: center; cursor: pointer; border: 2px solid #e9ecef; transition: all .3s; }
.phase.active { border-color: #FFC107; background: #FFF8E1; }
.phase.done { border-color: #28a745; background: #E8F5E9; }
.phase-marker { width: 36px; height: 36px; border-radius: 50%; background: #e9ecef; display: flex; align-items: center; justify-content: center; margin: 0 auto .6rem; font-weight: 800; transition: all .3s; }
.phase.active .phase-marker { background: #FFC107; color: #fff; }
.phase.done .phase-marker { background: #28a745; color: #fff; }
.phase-info h4 { font-size: .95rem; font-weight: 700; }
.phase-info p { font-size: .8rem; color: #888; margin-top: .3rem; }

.tracker-controls { display: flex; gap: 1rem; justify-content: center; }
.btn { padding: .8rem 2rem; border: 2px solid #ddd; background: #fff; border-radius: 10px; cursor: pointer; font-family: inherit; font-size: 1rem; font-weight: 600; transition: all .3s; }
.btn:hover { border-color: #FFC107; }
.btn-primary { background: #FFC107; border-color: #FFC107; color: #1A1A1A; }
.btn-primary:hover { background: #FFB300; }
.btn-reset { background: #dc3545; border-color: #dc3545; color: #fff; }
.btn-reset:hover { background: #c82333; }

.contact-info { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.contact-item { font-size: 1.2rem; font-weight: 500; }

footer { background: #1A1A1A; color: #fff; text-align: center; padding: 2rem; }

@media (max-width: 768px) {
    .calc-grid { grid-template-columns: 1fr; }
    nav { flex-direction: column; gap: 1rem; }
    nav ul { gap: 1rem; }
    .hero h1 { font-size: 2rem; }
    .contact-info { flex-direction: column; align-items: center; }
    .timeline { grid-template-columns: 1fr 1fr; }
}