* { box-sizing: border-box; }

body {
    margin: 0;
    font-family:Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
    direction: rtl;
    background: #ffffff;
}

/* ===== القسم العلوي الأزرق ===== */
.page-blue {
    background: #123a91;
    border-top: 5px solid #c0392b;
    padding-bottom: 70px;
}

.topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 18px 30px;
}

.logo {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo .logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.page-title {
    color: #ffffff;
    text-align: center;
    font-size: 30px;
    margin: 30px 20px 0 20px;
}

/* ===== البطاقة (تطفو بين القسم الأزرق والأبيض) ===== */
.container {
    max-width: 950px;
    margin: -60px auto 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 14px 14px 0 0;
    padding: 28px 20px 18px 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
	
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
	
}

.step span {
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}

.circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #d5d9e0;
    color: #aab0bc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background: #fff;
    font-size: 15px;
}

.circle.active {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

.circle.done {
    background: #ffffff;
    border-color: #d5d9e0;
    color: #aab0bc;
}

.line {
    flex: 1;
    height: 1px;
    background: #e2e5ea;
    margin: 0 10px;
    margin-bottom: 22px;
    max-width: 160px;
}

.card {
    background: #ffffff;
    border-radius: 0 0 14px 14px;
    padding: 35px 40px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.card h2 {
    color: #123a91;
    margin-top: 0;
    font-size: 20px;
}

.note {
    color: #9aa0aa;
    font-size: 13px;
    margin-top: -8px;
}

.form-row {
    margin-bottom: 22px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    color: #123a91;
    font-weight: bold;
    font-size: 14px;
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    font-size: 15px;
    background: #fbfbfc;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
}

.info-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #eef0f3;
    font-size: 15px;
}

.info-table td:first-child {
    color: #123a91;
    font-weight: bold;
    width: 40%;
}

.specialite-choice {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.specialite-choice label {
    flex: 1;
    display: block;
    padding: 20px;
    border: 2px solid #e2e5ea;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    transition: border-color 0.15s ease;
}

.specialite-choice input[type="radio"] {
    margin-left: 8px;
    accent-color: #c0392b;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.btn-red {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 14px 34px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.btn-red:hover { background: #a93226; }

.btn-outline {
    background: #fff;
    color: #123a91;
    border: 1.5px solid #123a91;
    padding: 14px 34px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.error {
    background: #fdecea;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    font-size: 14px;
}

.success {
    background: #eafaf1;
    color: #1e8449;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #a9dfbf;
    text-align: center;
    font-weight: bold;
}

/* ===== القسم السفلي: الخط الفاصل والتذييل ===== */
.teal-divider {
    height: 3px;
    background: #17a2a2;
    margin-top: 60px;
}

.page-footer {
    max-width: 950px;
    margin: 0 auto;
    padding: 20px 20px 40px 20px;
    text-align: center;
}

.page-footer h3 {
    color: #123a91;
    margin-bottom: 8px;
    font-size: 17px;
}

.page-footer p {
    color: #8a919c;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}
