/* ========================================
   Style - دورة وعي بمحبتك
   Professional & Responsive Design
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --bg-primary: #F5F0EB;
    --bg-secondary: #EFE5DE;
    --bg-gradient: linear-gradient(135deg, #F5F0EB 0%, #EDE6E0 50%, #F8F3EE 100%);
    --text-primary: #4A2D40;
    --text-secondary: #6A4B5B;
    --brand-primary: #6B3F58;
    --brand-secondary: #87586F;
    --rose-gold: #D8B29A;
    --card-bg: #FCF7F2;
    --card-border: #D7C1B3;
    --button-bg: #7A4D64;
    --button-hover: #694256;
    --price-bg: linear-gradient(135deg, #84546C 0%, #6B3F58 100%);
    --price-border: #D4B094;
    --glow: #F3D8C6;
    --success: #5B8A5B;
    --error: #B85C5C;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 2px 12px rgba(74, 45, 64, 0.06);
    --shadow-md: 0 8px 32px rgba(74, 45, 64, 0.10);
    --shadow-lg: 0 20px 60px rgba(74, 45, 64, 0.14);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.8;
    direction: rtl;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Header ===== */
.site-header {
    text-align: center;
    padding: 32px 16px 20px;
    animation: fadeInDown 0.8s ease;
}

.site-header img {
    height: 64px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(74, 45, 64, 0.1));
}

.site-header img:hover {
    transform: scale(1.06) translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(74, 45, 64, 0.15));
}

/* ===== Main Container ===== */
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* ===== Card ===== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeInUp 1s ease 0.2s both;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rose-gold), var(--brand-primary), var(--rose-gold));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-body {
    padding: 40px 36px;
}

/* ===== Hero Section ===== */
.hero-section {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--card-border);
}

.course-badge {
    display: inline-block;
    background: var(--glow);
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    border: 1px solid var(--rose-gold);
}

.course-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.course-instructor {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 14px;
    font-weight: 500;
}

.course-instructor strong {
    color: var(--brand-primary);
}

.course-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
    max-width: 90%;
    margin: 0 auto;
    font-weight: 400;
}

/* ===== Details Grid ===== */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.detail-item {
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    transition: var(--transition);
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--rose-gold);
}

.detail-item .label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.8;
    font-weight: 500;
}

.detail-item .value {
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ===== Meditations ===== */
.meditations {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 28px;
    border: 1px solid var(--card-border);
}

.meditations-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.meditations-icon {
    font-size: 1.4rem;
    color: var(--rose-gold);
}

.meditations h3 {
    font-size: 1.05rem;
    color: var(--brand-primary);
    font-weight: 700;
}

.meditations ul {
    list-style: none;
    padding: 0;
}

.meditations li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px dashed var(--card-border);
}

.meditations li:last-child {
    border-bottom: none;
}

.meditations li::before {
    content: '\2726';
    color: var(--rose-gold);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.meditations-presenter {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--card-border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.meditations-presenter strong {
    color: var(--brand-primary);
}

/* ===== Price Box ===== */
.price-box {
    background: var(--price-bg);
    color: #fff;
    text-align: center;
    padding: 28px;
    border-radius: var(--radius);
    margin-bottom: 32px;
    border: 2px solid var(--price-border);
    box-shadow: 0 8px 32px rgba(107, 63, 88, 0.25);
    position: relative;
    overflow: hidden;
}

.price-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: shimmer 6s ease-in-out infinite;
}

.price-label {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.price-value {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.price-currency {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.85;
    display: block;
    margin-top: 4px;
}

.price-note {
    font-size: 0.82rem;
    opacity: 0.75;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* ===== Divider ===== */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    color: var(--rose-gold);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}

/* ===== Form ===== */
.form-title {
    font-size: 1.25rem;
    color: var(--brand-primary);
    text-align: center;
    margin-bottom: 24px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 18px;
}

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

.form-label .required {
    color: var(--error);
    margin-right: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
    font-size: 0.9rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 4px var(--glow), 0 2px 8px rgba(107, 63, 88, 0.08);
    background: #fff;
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

/* ===== Payment Methods ===== */
.payment-methods {
    margin-bottom: 24px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--brand-secondary);
    background: var(--glow);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.payment-option input[type="radio"] {
    accent-color: var(--brand-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
}

.payment-option label {
    flex: 1;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-option .pay-icon {
    font-size: 1.4rem;
}

/* ===== PayPal Container ===== */
#paypal-button-container {
    margin-top: 20px;
    min-height: 50px;
    display: none;
}

#paypal-button-container.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.paypal-fallback-btn {
    margin-top: 12px;
}

/* ===== Submit Button ===== */
.btn-submit {
    width: 100%;
    padding: 16px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: var(--button-bg);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(107, 63, 88, 0.25);
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(107, 63, 88, 0.30);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== Messages ===== */
.message {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: center;
    display: none;
    font-weight: 500;
}

.message.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

.message.success {
    background: rgba(91, 138, 91, 0.08);
    color: var(--success);
    border: 1.5px solid rgba(91, 138, 91, 0.25);
}

.message.error {
    background: rgba(184, 92, 92, 0.08);
    color: var(--error);
    border: 1.5px solid rgba(184, 92, 92, 0.25);
}

/* ===== Status Pages ===== */
.status-card {
    text-align: center;
    padding: 56px 40px;
}

.status-icon {
    font-size: 4.5rem;
    margin-bottom: 20px;
    display: block;
    animation: bounceIn 0.8s ease;
}

.status-title {
    font-size: 1.7rem;
    color: var(--brand-primary);
    margin-bottom: 16px;
    font-weight: 800;
}

.status-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
    line-height: 2;
}

.btn-home {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--button-bg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(107, 63, 88, 0.22);
}

.btn-home:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(107, 63, 88, 0.28);
}

/* ===== Footer ===== */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 30px;
}

.site-footer a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    display: inline-block;
}

.site-footer a:hover {
    color: var(--brand-secondary);
    transform: translateY(-1px);
}

.site-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: 500;
    direction: ltr;
}

.site-footer .developer-credit {
    direction: rtl;
    margin-top: 14px;
    font-size: 0.85rem;
}

.site-footer .developer-credit a {
    font-size: 0.9rem;
    font-weight: 700;
}

.site-footer .divider-line {
    width: 40px;
    height: 2px;
    background: var(--rose-gold);
    margin: 12px auto 8px;
    border-radius: 2px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0%   { opacity: 0; transform: scale(0.3); }
    50%  { opacity: 1; transform: scale(1.05); }
    70%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg) translate(0, 0); }
    50% { transform: rotate(180deg) translate(10px, 10px); }
}

/* ===== Loader ===== */
.loader {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Responsive - Mobile First ===== */
@media (max-width: 640px) {
    .container {
        padding: 0 16px 60px;
    }
    .card-body {
        padding: 28px 22px;
    }
    .course-title {
        font-size: 1.6rem;
    }
    .price-value {
        font-size: 2.2rem;
    }
    .status-card {
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .card-body {
        padding: 24px 18px;
    }
    .course-title {
        font-size: 1.45rem;
    }
    .price-value {
        font-size: 2rem;
    }
    .details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .detail-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .detail-item .label {
        font-size: 0.85rem;
    }
    .detail-item .value {
        font-size: 0.9rem;
    }
    .meditations {
        padding: 18px;
    }
    .form-input,
    .form-textarea {
        padding: 12px 14px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 680px;
    }
    .card-body {
        padding: 48px 44px;
    }
    .course-title {
        font-size: 2.2rem;
    }
    .course-desc {
        font-size: 1.05rem;
        max-width: 80%;
    }
}
