:root {
    --primary-color: #4a6cf7;
    --secondary-color: #f5f5f5;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-text: #777;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7ff 0%, #e8eeff 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.card {
    background-color: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.header {
    padding: 40px 30px 20px;
    text-align: center;
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo i {
    font-size: 28px;
    color: var(--primary-color);
    margin-right: 10px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

.header h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.header p {
    color: var(--light-text);
    font-size: 16px;
}

.form-container {
    padding: 30px;
    transition: opacity 0.3s ease;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

input[type="email"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input[type="email"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.radio-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.radio-option input[type="radio"] {
    margin-right: 10px;
    accent-color: var(--primary-color);
}

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    border: none;
}

#cancelBtn {
    background-color: transparent;
    color: var(--light-text);
    border: 1px solid var(--border-color);
}

#cancelBtn:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

#confirmBtn {
    background-color: var(--primary-color);
    color: white;
}

#confirmBtn:hover {
    background-color: #3a5ce4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
}

.confirmation-screen {
    padding: 40px 30px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirmation-screen i {
    font-size: 60px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.confirmation-screen h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.confirmation-screen p {
    color: var(--light-text);
    margin-bottom: 10px;
}

.small {
    font-size: 13px;
    opacity: 0.8;
}

.special-offer {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9ff;
    border-radius: 10px;
    border: 1px dashed var(--primary-color);
}

.special-offer h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

special-offer p {
    margin-bottom: 15px;
}

#specialOfferBtn {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
}

#specialOfferBtn:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Loader Styles */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-circle {
    width: 15px;
    height: 15px;
    margin: 0 5px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader-circle:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-circle:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.6;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

.invalid {
    border-color: var(--accent-color) !important;
    background-color: rgba(255, 107, 107, 0.05);
}

.required {
    color: var(--accent-color);
    margin-left: 3px;
}

.error-message {
    color: var(--accent-color);
    font-size: 12px;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.error-message.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .radio-options {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
        gap: 15px;
    }
    
    #cancelBtn, #confirmBtn {
        width: 100%;
    }
}
