/* Revma Form Plugin Styles */

.revma-form-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Progress Bar */
.revma-form-progress {
    display: flex;
    background: #F9914F;
    padding: 20px;
    position: relative;
}

.progress-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-step.active {
    color: #fff;
}

.progress-step.completed {
    color: #4CAF50;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #fff;
    color: #F9914F;
}

.progress-step.completed .step-number {
    background: #4CAF50;
    color: #fff;
}

.step-title {
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .step-title {
        display: none;
    }
}

/* Form Styles */
.revma-form {
    padding: 30px;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.form-step.active {
    display: block;
}

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

.form-step h3 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    text-align: center;
}

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

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.4;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #F9914F;
    box-shadow: 0 0 0 3px rgba(249, 145, 79, 0.1);
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.radio-option:hover {
    border-color: #F9914F;
    background: #fef7f4;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + .option-content,
.radio-option input[type="radio"]:checked + .text {
    color: #F9914F;
}

.radio-option input[type="radio"]:checked {
    background: #F9914F;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #F9914F;
    background: #fef7f4;
}

.radio-option::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-option:has(input[type="radio"]:checked)::before {
    border-color: #F9914F;
    background: #F9914F;
    box-shadow: inset 0 0 0 3px #fff;
}

.radio-option .text {
    font-size: 15px;
    color: #333;
}

/* Icon Options */
.icon-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.icon-option .option-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-option .icon {
    font-size: 24px;
}

/* Providers Grid */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

/* Pricing Options */
.pricing-option.yellow:has(input[type="radio"]:checked) {
    border-color: #FFC107;
    background: #fff8e1;
}

.pricing-option.blue:has(input[type="radio"]:checked) {
    border-color: #2196F3;
    background: #e3f2fd;
}

.pricing-option.orange:has(input[type="radio"]:checked) {
    border-color: #FF9800;
    background: #fff3e0;
}

.pricing-option.yellow::before {
    border-color: #FFC107;
}

.pricing-option.blue::before {
    border-color: #2196F3;
}

.pricing-option.orange::before {
    border-color: #FF9800;
}

.pricing-option.yellow:has(input[type="radio"]:checked)::before {
    background: #FFC107;
}

.pricing-option.blue:has(input[type="radio"]:checked)::before {
    background: #2196F3;
}

.pricing-option.orange:has(input[type="radio"]:checked)::before {
    background: #FF9800;
}

/* Consumption Options */
.consumption-option {
    padding: 20px;
}

.consumption-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.consumption-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.consumption-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Step Description */
.step-description {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 8px;
    border-left: 4px solid #F9914F;
}

.step-description p {
    margin: 0 0 10px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.step-description p:last-child {
    margin-bottom: 0;
}

/* Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    min-width: 120px;
}

.btn-prev {
    background: #6c757d;
    color: #fff;
}

.btn-prev:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-next, .btn-submit {
    background: #F9914F;
    color: #fff;
    margin-left: auto;
}

.btn-next:hover, .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 145, 79, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Messages */
.form-messages {
    margin-top: 20px;
    position: relative;
}

.success-message, .error-message, .processing-message, .info-message {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.success-message {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
    border: 1px solid #f5c6cb;
}

.processing-message {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
    border: 1px solid #ffeaa7;
}

.info-message {
    background: #cce7ff;
    color: #004085;
    border-left-color: #007bff;
    border: 1px solid #a6d8ff;
}

.success-message p, .error-message p, .processing-message p, .info-message p {
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

.message-icon {
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 0;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button hover effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .revma-form-container {
        margin: 10px;
        border-radius: 0;
    }
    
    .revma-form {
        padding: 20px;
    }
    
    .icon-group {
        grid-template-columns: 1fr;
    }
    
    .providers-grid {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-left: 0 !important;
    }
    
    .form-step h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .revma-form {
        padding: 15px;
    }
    
    .radio-option {
        padding: 12px;
    }
    
    .consumption-option {
        padding: 15px;
    }
}

/* Success Screen Styles */
.success-screen {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    margin-top: 20px;
}

.success-content {
    max-width: 400px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 30px;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4CAF50;
    position: relative;
    margin: 0 auto;
    animation: pop 0.6s ease-in-out;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
}

.checkmark::before {
    content: '✓';
    color: white;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.success-title {
    color: #2E5836;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: none;
}

.success-message-text {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.success-actions .btn {
    background: #F9914F;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-actions .btn:hover {
    background: #e67e35;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 145, 79, 0.3);
}

@keyframes pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .success-screen {
        padding: 40px 15px;
        margin-top: 10px;
    }
    
    .checkmark-circle {
        width: 60px;
        height: 60px;
    }
    
    .success-title {
        font-size: 24px;
    }
    
    .success-message-text {
        font-size: 14px;
    }
}