/* Lead Questionnaire Styles */
.questionnaire-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins';
}

.questionnaire-header {
    text-align: center;
    margin-bottom: 10px;
}

.questionnaire-header h2 {
    font-size: 25px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px 0;
	font-family:'Suez One';
}

.questionnaire-header p {
    font-size: 14px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #039480, #700BB6 );
    border-radius: 10px;
    transition: width 0.3s ease;
}

.question-counter {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Question Slides */
.question-slide {
    min-height: 300px;
    animation: fadeIn 0.3s ease-in-out;
}

.question-slide h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.question-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 30px 0 !important;
    line-height: 1.4;
}

.question-options {
    margin-bottom: 40px;
}

/* Radio Options */
.radio-option {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    margin-bottom: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.radio-option:hover {
    border-color: #039480;
    background-color: #f8f9ff;
}

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

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.2s ease;
	top:2px;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #039480;
    background-color: #039480;
}

.radio-option input[type="radio"]:checked + .radio-custom:after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-option input[type="radio"]:checked ~ .option-text {
    color: #039480;
    font-weight: 500;
}

/* Checkbox Options */
.checkbox-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-option:hover {
    border-color: #039480;
    background-color: #f8f9ff;
}

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

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 15px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #039480;
    background-color: #039480;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom:after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-option input[type="checkbox"]:checked ~ .option-text {
    color: #039480;
    font-weight: 500;
}

.option-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
    flex: 1;
}

/* Text Inputs */
.text-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    color: #374151;
    background-color: #fff;
    transition: border-color 0.2s ease;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.text-input:focus {
    outline: none;
    border-color: #039480;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.text-input.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.text-input::placeholder {
    color: #9ca3af;
}

/* Contact Form Specific */
.question-slide label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.question-slide textarea {
    resize: vertical;
    min-height: 100px;
}

/* Navigation Buttons */
.question-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

.btn {
    padding: 10px 32px;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
}

.btn-back {
    background-color: #f3f4f6;
    color: #6b7280;
}

.btn-back:hover {
    background-color: #e5e7eb;
    color: #4b5563;
}

.btn-continue,
.btn-submit {
    background: linear-gradient(135deg, #039480, #700BB6 );
    color: white;
    margin-left: auto;
}

.btn-continue:hover,
.btn-submit:hover {
    background: linear-gradient(135deg, #700BB6 , #2c5aa0);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Validation Errors */
.validation-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 60px 20px;
}

.success-message h3 {
    font-size: 24px;
    color: #059669;
    margin-bottom: 16px;
}

.success-message p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .questionnaire-container {
        margin: 20px;
        padding: 0;
    }
    
    .questionnaire-header {
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .questionnaire-header h2 {
        font-size: 26px;
    }
    
    .questionnaire-header p {
        font-size: 16px;
    }
    
    .question-slide {
        padding: 0 20px;
        min-height: 400px;
    }
    
    .question-slide h3 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .radio-option-wrapper,
    .checkbox-option-wrapper {
        margin-bottom: 12px;
    }
    
    .radio-option,
    .checkbox-option {
        padding: 16px 20px;
    }
    
    .option-text {
        font-size: 16px;
    }
    
    .btn {
        padding: 14px 32px;
        font-size: 15px;
        min-width: 120px;
    }
    
    .question-navigation {
        padding: 0 20px 30px 20px;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .btn-continue,
    .btn-submit {
        margin-left: auto;
    }
    
    .form-field {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .questionnaire-container {
        margin: 10px;
    }
    
    .questionnaire-header {
        padding: 0 16px;
    }
    
    .questionnaire-header h2 {
        font-size: 22px;
    }
    
    .question-slide {
        padding: 0 16px;
    }
    
    .question-slide h3 {
        font-size: 20px;
    }
    
    .radio-option,
    .checkbox-option {
        padding: 14px 16px;
    }
    
    .radio-custom,
    .checkbox-custom {
        width: 20px;
        height: 20px;
        margin-right: 14px;
    }
    
    .option-text {
        font-size: 15px;
    }
    
    .question-navigation {
        padding: 0 16px 20px 16px;
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-continue,
    .btn-submit {
        margin-left: 0;
        width: 100%;
        order: 1;
    }
    
    .btn-back {
        width: 100%;
        order: 2;
    }
    
    .form-field {
        margin-bottom: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .questionnaire-container {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .questionnaire-header h2,
    .question-slide h3 {
        color: #f9fafb;
    }
    
    .questionnaire-header p,
    .question-subtitle {
        color: #d1d5db;
    }
    
    .radio-option,
    .checkbox-option {
        border-color: #374151;
        background-color: #1f2937;
    }
    
    .radio-option:hover,
    .checkbox-option:hover {
        background-color: #111827;
    }
    
    .option-text {
        color: #d1d5db;
    }
    
    .text-input {
        background-color: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .text-input::placeholder {
        color: #6b7280;
    }
    
    .btn-back {
        background-color: #374151;
        color: #d1d5db;
    }
    
    .btn-back:hover {
        background-color: #4b5563;
    }
}

/* --- Custom radio buttons (updated) --- */
.radio-option {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0.5rem 0;
  cursor: pointer;
  font-size: 16px;
}

/* Hide the default radio */
.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Circle */
.radio-option .radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #444;
  border-radius: 50%;
  margin-right: 10px;
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  transition: border-color 0.2s ease;
}

/* Checked state: inner dot */
.radio-option input[type="radio"]:checked + .radio-custom::after {
  content: "";
  width: 10px;
  height: 10px;
  background: 700BB6 ; /* brand color */
  border-radius: 50%;
  position: absolute;
}

/* Hover/focus styling */
.radio-option:hover .radio-custom,
.radio-option input[type="radio"]:focus + .radio-custom {
  border-color: #039480;
}
