/* Premium Features Order Design System */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --pf-primary: #075CCC;
    --pf-primary-light: #4CADFF;
    --pf-secondary: #3A7CFF;
    --pf-accent: #D4AF37;
    --pf-bg: #F5F7FA;
    --pf-card-bg: #FFFFFF;
    --pf-text-primary: #0A1F44;
    --pf-text-secondary: #6B7C9C;
    --pf-border: #E6E9F0;
    --pf-shadow-sm: 0 4px 6px rgba(7, 92, 204, 0.05);
    --pf-shadow-md: 0 10px 20px rgba(7, 92, 204, 0.08);
    --pf-shadow-hover: 0 15px 30px rgba(7, 92, 204, 0.12);
    --pf-radius: 16px;
    --pf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--pf-bg);
    color: var(--pf-text-primary);
}

/* Scoped font application for Premium Feature Order page */
.pf-container,
.pf-modal,
.pf-modal .modal-content,
.pf-modal .btn,
.pf-modal input,
.pf-container .btn,
.pf-container input,
.pf-container select,
.pf-container textarea {
    font-family: 'Tajawal','GE_SS_Two_Bold';
}

.pf-container {
    max-width: 1200px;
    /* Responsive vertical spacing - starting large enough to clear fixed header */
    margin: clamp(100px, 12vh, 140px) auto 40px;
    /* Responsive horizontal padding */
    padding: 0 clamp(16px, 3vw, 24px);
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
}

/* Feature Card */
.pf-card {
    background: var(--pf-card-bg);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow-md);
    border: 1px solid white;
    overflow: hidden;
    height: 100%;
    transition: var(--pf-transition);
    display: flex;
    flex-direction: column;
}

    .pf-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--pf-shadow-hover);
    }

.pf-card-image-wrapper {
    position: relative;
    padding-top: 60%; /* Aspect ratio */
    overflow: hidden;
}

.pf-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pf-card:hover .pf-card-image {
    transform: scale(1.05);
}

.pf-card-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pf-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--pf-primary);
}

.pf-card-text {
    color: var(--pf-text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.pf-align-start {
    align-items: center;
    gap: 10px;
}

.pf-text-muted {
    color: var(--pf-text-secondary);
    font-size: 14px;
}

.pf-price {
    font-size: 20px;
    color: var(--pf-primary);
    font-weight: 800;
}

/* Form Section */
.pf-summary {
    background: var(--pf-card-bg);
    padding: 35px;
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow-md);
}

.pf-label {
    font-weight: 600;
    color: var(--pf-text-primary);
    margin-bottom: 8px;
    display: block;
}

.pf-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--pf-border);
    border-radius: 12px;
    font-size: 16px;
    transition: var(--pf-transition);
    color: var(--pf-text-primary);
}

    .pf-input:focus {
        border-color: var(--pf-primary);
        outline: none;
        box-shadow: 0 0 0 4px rgba(7, 92, 204, 0.1);
    }

.pf-form-group {
    margin-bottom: 24px;
}

.required-field::after {
    content: "*";
    color: #dc3545;
    margin-left: 4px;
}

/* Payment Methods */
.payment-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pf-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.payment-method-option {
    position: relative;
    cursor: pointer;
}

    .payment-method-option input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

.payment-method-card {
    padding: 20px;
    border: 2px solid var(--pf-border);
    border-radius: 12px;
    background: var(--pf-card-bg);
    transition: var(--pf-transition);
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
    position: relative;
}

    .payment-method-card:hover {
        border-color: var(--pf-primary-light);
        box-shadow: var(--pf-shadow-sm);
        transform: translateY(-2px);
    }

.payment-method-option input:checked + .payment-method-card {
    border-color: var(--pf-primary);
    background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
    box-shadow: var(--pf-shadow-md);
}

.payment-method-icon {
    width: 45px;
    height: 45px;
    background: rgba(7, 92, 204, 0.1);
    color: var(--pf-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.payment-method-details {
    flex: 1;
}

.payment-method-name {
    font-weight: bold;
    font-size: 16px;
    color: var(--pf-text-primary);
    margin-bottom: 4px;
}

.payment-method-desc {
    font-size: 14px;
    color: var(--pf-text-secondary);
    line-height: 1.3;
    font-weight: bold;
}

.payment-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--pf-accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    animation: badge-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Checkmark Animation */
.payment-method-option input:checked + .payment-method-card::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--pf-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
    }

@keyframes badge-pop {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
    }

.pf-btn-primary {
    background: var(--pf-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--pf-transition);
    box-shadow: 0 4px 12px rgba(7, 92, 204, 0.2);
}

    .pf-btn-primary:hover {
        background: var(--pf-secondary);
        box-shadow: 0 8px 16px rgba(7, 92, 204, 0.3);
        transform: translateY(-2px);
    }

/* Modal Styles */
.pf-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.pf-modal .modal-header {
    border-bottom: 1px solid var(--pf-border);
    background: var(--pf-bg);
    border-radius: 20px 20px 0 0;
    padding: 20px 30px;
}

.pf-modal .modal-title {
    color: var(--pf-primary);
    font-weight: 700;
}

.pf-modal .modal-body {
    font-size: 18px;
    color: var(--pf-text-secondary);
    line-height: 1.6;
    font-weight: 500;
}

.pf-modal-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--pf-primary);
}
.copy-icon {
    cursor: pointer;
    color: var(--pf-primary);
    margin-right: 8px;
    vertical-align: middle;
    font-size: 1.1rem;
    transition: color 0.2s;
}

    .copy-icon:hover {
        color: #0a58ca;
    }

    .copy-icon i {
        pointer-events: none;
    }

/* RTL Support */
[dir="rtl"] .payment-badge {
    right: auto;
    left: 10px;
}
[dir="rtl"] .payment-method-option input:checked + .payment-method-card::after {
    right: auto;
    left: 10px;
}
[dir="rtl"] .required-field::after {
    margin-left: 0;
    margin-right: 4px;
}

/* Main Layout Grid */
.pf-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 992px) {
    .pf-layout-grid {
        grid-template-columns: 5fr 7fr;
        gap: 32px;
        align-items: start;
    }
}

/* Responsive & Scaling */
@media (max-width: 991px) {
    .pf-card-image-wrapper {
        padding-top: 50%; /* Compact image on tablet/mobile */
    }
}

@media (max-width: 768px) {
    .pf-layout-grid {
        gap: 16px; /* Reduced gap on mobile */
    }

    .pf-card-body, .pf-summary {
        padding: 20px;
    }

    .pf-card-title { font-size: 20px; margin-bottom: 10px; }
    .payment-section-title { font-size: 18px; margin-bottom: 15px; }
    .pf-price { font-size: 18px; }

    /* Compact Payment Grid */
    .payment-methods-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .payment-method-card {
        padding: 15px;
        gap: 12px;
        min-height: 70px; /* Ensure touch target size */
    }

    .payment-method-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .payment-method-name { font-size: 16px; font-weight: bold; }

    .payment-method-desc { font-size: 14px; font-weight: bold; }

    /* Form Inputs Scaling */
    .pf-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .pf-btn-primary {
        padding: 12px !important;
        font-size: 16px;
    }

    /* Contact Method Group */
    .pf-contact-group {
        flex-direction: column;
        gap: 10px !important;
        padding: 15px !important;
    }
}
