/* 
 * حاسبة زكاة الفطر - هوية جمعية القطيف الخيرية
 * الألوان: البني والأخضر
 */

:root {
    --primary-brown: #7d5a3c;
    --dark-brown: #5d4330;
    --light-brown: #9d7a5c;
    --primary-green: #3d7857;
    --dark-green: #2d5842;
    --light-green: #4d8867;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --shadow: 0 10px 30px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-brown) 50%, var(--primary-green) 100%);
    min-height: 100vh;
    padding: 30px 15px;
    direction: rtl;
}

.wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Header with Logo */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-box {
    background: white;
    border-radius: 30px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: inline-block;
}

.logo-box img {
    max-width: 280px;
    height: auto;
}

/* Progress Steps */
.progress-steps {
    background: white;
    border-radius: 25px;
    padding: 35px 25px;
    margin-bottom: 35px;
    box-shadow: var(--shadow);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 32px;
    right: 20%;
    left: 20%;
    height: 4px;
    background: #e0e0e0;
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    margin: 0 auto 15px;
    border: 5px solid white;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, var(--primary-brown), var(--primary-green));
    color: white;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(125, 90, 60, 0.4);
}

.step-item.completed .step-circle {
    background: var(--primary-green);
    color: white;
}

.step-label {
    font-size: 16px;
    font-weight: 700;
    color: #666;
    transition: color 0.3s;
}

.step-item.active .step-label {
    color: var(--primary-brown);
}

/* Main Card */
.main-card {
    background: white;
    border-radius: 30px;
    padding: 45px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-brown);
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-brown);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-brown), var(--primary-green));
    border-radius: 2px;
}

.page-subtitle {
    color: var(--text-light);
    font-size: 16px;
    margin-top: 20px;
}

/* Form Elements */
.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.form-label i {
    color: var(--primary-green);
    font-size: 20px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    background: white;
    transition: all 0.3s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 4px rgba(125, 90, 60, 0.1);
}

/* Radio Options */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.radio-item {
    position: relative;
}

.radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 15px;
}

.radio-item input[type="radio"]:checked + .radio-label {
    background: linear-gradient(135deg, var(--primary-brown), var(--primary-green));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(125, 90, 60, 0.3);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 18px 30px;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-brown), var(--primary-green));
    color: white;
    box-shadow: 0 8px 20px rgba(125, 90, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(125, 90, 60, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Summary Box */
.summary-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 3px solid var(--light-brown);
}

.summary-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-brown);
    margin-bottom: 20px;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

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

.summary-row-label {
    font-size: 15px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-row-label i {
    color: var(--primary-green);
}

.summary-row-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.summary-row.total {
    background: linear-gradient(135deg, var(--primary-brown), var(--primary-green));
    margin: 20px -30px -30px;
    padding: 25px 30px;
    border-radius: 0 0 18px 18px;
}

.summary-row.total .summary-row-label,
.summary-row.total .summary-row-value {
    color: white;
    font-size: 20px;
}

/* Payment Box */
.payment-wrapper {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 30px;
    border: 3px solid var(--light-green);
    margin-top: 30px;
}

.payment-header {
    text-align: center;
    margin-bottom: 25px;
}

.payment-header h3 {
    color: var(--primary-brown);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.payment-header h3 i {
    color: var(--primary-green);
}

.payment-header p {
    color: var(--text-light);
    font-size: 14px;
}

/* Footer */
.footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    font-size: 14px;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    
    .main-card {
        padding: 30px 20px;
    }
    
    .page-title h1 {
        font-size: 26px;
    }
    
    .step-circle {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .step-label {
        font-size: 13px;
    }
    
    .radio-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-box img {
        max-width: 220px;
    }
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.alert i {
    font-size: 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-brown);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-brown);
}
