/* Contact page specific Arabic RTL styles */
[dir="rtl"] .hero-subtitle {
    text-align: center !important;
}

[dir="rtl"] .hero-subtitle>div {
    text-align: center !important;
}

[dir="rtl"] .hero-subtitle .secondary-font {
    text-align: center !important;
}

/* Fix brackets for RTL languages */
[dir="rtl"] #ball p.center-first::before {
    content: "]" !important;
    left: auto !important;
    right: -8px !important;
}

[dir="rtl"] #ball p.center-first::after {
    content: "[" !important;
    right: auto !important;
    left: -8px !important;
}

/* Fix brackets for LTR languages - ensure English shows correct text */
[dir="ltr"] #ball p.center-first::before {
    content: "[" !important;
}

[dir="ltr"] #ball p.center-first::after {
    content: "]" !important;
}

/* Fix accordion alignment for Arabic RTL */
body[dir="rtl"] .accordion dt {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
    padding-left: 50px !important;
}

body[dir="rtl"] .accordion dt .link {
    order: 2 !important;
    text-align: right !important;
    flex-grow: 1 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body[dir="rtl"] .accordion dt .acc-icon-wrap {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}

body[dir="rtl"] .accordion dt .acc-icon-wrap i {
    transform: rotate(180deg) !important;
}

body[dir="rtl"] .accordion dt .primary-font-title {
    text-align: right !important;
    width: 100% !important;
}

body[dir="rtl"] .accordion dt .primary-font-title div {
    text-align: right !important;
    width: 100% !important;
}

body[dir="rtl"] .accordion dd {
    text-align: right !important;
    direction: rtl !important;
    padding-right: 0 !important;
}

.holographic-planet-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.planet-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holographic-planet-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    animation: planetFloat 3s ease-in-out infinite alternate, planetRotate 8s linear infinite;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.6)) drop-shadow(0 0 40px rgba(75, 0, 130, 0.4));
}

.loading-text span {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.8);
    animation: textGlow 2s ease-in-out infinite alternate;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .holographic-planet-img {
        width: 120px;
        height: 120px;
    }

    .loading-text span {
        font-size: 20px;
    }
}

/* Enhanced Contact Form Styling */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.half-width {
    flex: 1;
}

/* Phone Input Container */
.phone-input-container {
    display: flex;
    gap: 0;
    position: relative;
}

.country-select {
    width: 120px;
    padding: 15px 10px;
    background: #0C0C0C;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-right: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-select:focus {
    outline: none;
}

.country-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
}

.phone-box input[type="tel"] {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.phone-box input[type="tel"]:focus {
    outline: none;
}

/* Select Dropdowns */
.service-select,
.timeline-select {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.service-select:focus,
.timeline-select:focus {
    border-color: #4d55f5;
    background-color: rgba(77, 85, 245, 0.1);
    outline: none;
}

.service-select option,
.timeline-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
}

/* Simple Budget Selection */
.budget-box {
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.budget-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(77, 85, 245, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(77, 85, 245, 0.1);
}

.budget-label {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.budget-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    align-items: stretch;
}

.budget-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.budget-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(77, 85, 245, 0.1), transparent);
    transition: left 0.5s ease;
}

.budget-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(77, 85, 245, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(77, 85, 245, 0.2);
}

.budget-option:hover::before {
    left: 100%;
}

.budget-option.selected {
    background: linear-gradient(135deg, rgba(77, 85, 245, 0.2), rgba(219, 131, 57, 0.2));
    border-color: #4d55f5;
    box-shadow: 0 8px 25px rgba(77, 85, 245, 0.3);
}

.budget-option.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    color: #4d55f5;
    font-size: 18px;
    font-weight: bold;
}

.budget-option-content {
    position: relative;
    z-index: 1;
}

.budget-range {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.budget-desc {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
}

.budget-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* RTL Support */
[dir="rtl"] .budget-option.selected::after {
    right: auto;
    left: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .budget-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .budget-option {
        padding: 18px;
        min-height: 100px;
    }

    .budget-range {
        font-size: 16px;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .budget-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .half-width {
        width: 100%;
    }

    .phone-input-container {
        flex-direction: column;
        gap: 15px;
    }

    .country-select {
        width: 100%;
    }

    .phone-box input[type="tel"] {
        padding: 15px 0px;
    }

    /* Arabic mobile phone input styling */
    [dir="rtl"] .phone-box input[type="tel"] {
        text-align: right;
        padding-right: 20px;
    }

    .budget-box {
        padding: 20px 15px;
    }
}