/* تحديث الستايل العام */
:root {
    --primary-color: #2563EB;
    --secondary-color: #1E40AF;
    --bg-color: #F8FAFC;
    --text-color: #1E293B;
    --border-color: #E2E8F0;
    --success-color: #059669;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    background: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.form-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1.2rem;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--text-color);
    cursor: pointer;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

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

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.8rem;
}

.feature-title {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #64748B;
    font-size: 0.95rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Providers Section */
.providers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 3rem 0;
}

.provider-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.provider-card.selected {
    border-color: var(--accent-color);
    background-color: rgba(9, 132, 227, 0.1);
}

.provider-card::before {
    content: attr(data-name);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    font-size: 3em;
    white-space: nowrap;
    pointer-events: none;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--accent-color);
}

.selected-provider {
    background-color: var(--background-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selected-provider span {
    color: var(--secondary-color);
}

.selected-provider strong {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Form Styles */
.order-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 3rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: var(--accent-color);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: #0873c4;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.success-content {
    padding: 1.5rem;
    text-align: center;
}

.success-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.success-content h2 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.success-content p {
    color: #64748B;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.order-details {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: #64748B;
    font-size: 0.9rem;
}

.detail-value {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

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

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .providers {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}

/* Support Button */
.brandbuket-button {
    background: #2563EB;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.brandbuket-button:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
}

.brandbuket-button .button-icon {
    font-size: 20px;
    margin-right: 4px;
}

.brandbuket-button.success {
    background: #059669;
}

.brandbuket-button.success:hover {
    background: #047857;
}

.redirect-message {
    color: #6B7280;
    text-align: center;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 500;
}

.domain-extension {
    margin-top: 0.5rem;
    display: none;
}

.extension-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--primary-color);
    animation: fadeIn 0.3s ease;
}

.extension-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.provider-name {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.8;
}

.price-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.price-tag.unavailable {
    background: #94A3B8;
}

.price-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.original-price {
    font-size: 0.85rem;
    color: #64748B;
    text-decoration: line-through;
    margin-bottom: -0.2rem;
}

.price-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discount-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.final-price {
    font-weight: 700;
    font-size: 1rem;
}

.price-tag.unavailable {
    background: #94A3B8;
}

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

.message-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    direction: rtl;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #E5E7EB;
}

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

.label {
    color: #6B7280;
    font-size: 14px;
}

.value {
    color: #111827;
    font-weight: 600;
    font-size: 14px;
}

.copy-button {
    background: #2563EB;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.copy-button:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
}

.copy-button.success {
    background: #059669;
}

.steps-section {
    background: #F3F4F6;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
}

.steps-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FF385C;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 18px;
}

.steps-list {
    margin-bottom: 20px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #4B5563;
}

.step-number {
    width: 24px;
    height: 24px;
    background: #FF385C;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.process-steps-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.process-steps-container h2 {
    color: #2563EB;
    text-align: right;
    margin-bottom: 30px;
    font-size: 20px;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.process-steps-container h2 img {
    width: 24px;
    height: 24px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-step {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 20px;
    text-align: right;
    direction: rtl;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon img {
    width: 100%;
    height: 100%;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: #2563EB;
    margin-bottom: 15px;
    font-size: 18px;
    font-family: 'Cairo', sans-serif;
}

.step-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #64748b;
}

.step-content ul li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    padding-right: 15px;
}

.step-content ul li:before {
    content: "•";
    color: #2563EB;
    position: absolute;
    right: 0;
}

.step-content ul ul {
    padding-right: 20px;
    margin-top: 8px;
}

.important-notes {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    text-align: right;
    direction: rtl;
}

.important-notes h3 {
    color: #2563EB;
    margin-bottom: 20px;
    font-size: 18px;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.important-notes h3 img {
    width: 24px;
    height: 24px;
}

.note-item {
    display: flex;
    align-items: start;
    gap: 8px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.note-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .process-steps-container {
        padding: 0 15px;
    }

    .process-step {
        padding: 20px;
    }
}
