:root {
    --primary-color: #D4AF37; /* Gold */
    --primary-hover: #b5952f;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(20, 20, 20, 0.85);
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --border-color: #333;
    --border-focus: #D4AF37;
    --error-color: #ff4d4d;
    --success-color: #00cc66;
}

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

/* Premium Background Effect */
.background-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, rgba(10, 10, 10, 1) 50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 800px;
    width: 100%;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.offer-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
}

.offer-banner .icon {
    font-size: 1.5rem;
}

/* Form Styles */
.form-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

.form-section {
    border: none;
    margin-bottom: 40px;
}

.form-section legend {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    width: 100%;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.section-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.field-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea,
select.custom-select {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Radio & Checkbox Cards */
.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.radio-group.vertical {
    grid-template-columns: 1fr;
}

.radio-card {
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.05);
}

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

.radio-card input[type="radio"]:checked + .radio-label {
    color: var(--primary-color);
}

.radio-card input[type="radio"]:checked ~ .radio-label::before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    box-shadow: inset 0 0 0 3px var(--bg-dark);
}

.radio-card:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.radio-label {
    display: flex;
    flex-direction: column;
    padding-right: 30px;
    position: relative;
    line-height: 1.4;
}

.radio-label::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.price-tag {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 5px;
}

/* Rating Scale */
.rating-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.rating-numbers {
    display: flex;
    gap: 5px;
}

.rating-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.rating-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.rating-btn.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.rating-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Policy Box */
.policy-box {
    background: rgba(255, 77, 77, 0.05);
    border: 1px solid rgba(255, 77, 77, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.policy-box h4 {
    color: #ff8080;
    margin-bottom: 10px;
}

.policy-box p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 600;
}

/* Calculator Summary Fixed Bottom */
.calculator-summary {
    position: sticky;
    bottom: 20px;
    background: linear-gradient(135deg, rgba(30,30,30,0.95), rgba(15,15,15,0.95));
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    z-index: 100;
    margin-top: 40px;
    animation: slideUp 0.5s ease-out forwards;
}

.calc-content h3 {
    font-size: 1rem;
    color: var(--text-muted);
}

.total-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-top: 5px;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.submit-btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Status Message */
.status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.status-message.success {
    display: block;
    background: rgba(0, 204, 102, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.status-message.error {
    display: block;
    background: rgba(255, 77, 77, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

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

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

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

/* Responsive */
@media (max-width: 600px) {
    .form-card {
        padding: 20px;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .calculator-summary {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .rating-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Success Page Styles */
.success-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.success-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
    max-width: 700px;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.success-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.success-text {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 30px;
}

.next-steps {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    text-align: right;
    margin-bottom: 30px;
}

.next-steps h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.next-steps ul {
    list-style-type: none;
    padding: 0;
}

.next-steps ul li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.next-steps ul li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    right: 0;
    top: -5px;
}

.success-footer {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.wa-icon {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

.wa-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #25d366;
    pointer-events: none;
}

.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}
