/* Guided Questionnaire Styles - Matching React Design */

.gq-questionnaire-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gq-section {
    padding: 5rem 1rem;
    background: linear-gradient(to bottom, rgba(30, 58, 138, 0.2), transparent);
}

.gq-container {
    max-width: 64rem;
    margin: 0 auto;
}

.gq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gq-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gq-header p {
    font-size: 1.25rem;
    color: #d1d5db;
    line-height: 1.5;
}

/* Progress Indicator */
.gq-progress-wrapper {
    margin-bottom: 2rem;
}

.gq-progress-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.gq-progress-bar-bg {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    height: 0.5rem;
    overflow: hidden;
}

.gq-progress-bar {
    background-color: #ffffff;
    border-radius: 9999px;
    height: 100%;
    transition: width 0.3s ease;
}

/* Cards */
.gq-card {
    background-color: #0A1F44;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.gq-card-content {
    padding: 2rem;
}

.gq-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.gq-card-subtitle {
    color: #d1d5db;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* Step Animation */
.gq-step {
    animation: slideIn 0.3s ease-out;
}

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

.gq-step-exit {
    animation: slideOut 0.3s ease-out;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* Grid Layouts */
.gq-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .gq-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gq-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .gq-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gq-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gq-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .gq-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gq-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Option Buttons */
.gq-option-btn {
    padding: 2rem;
    border-radius: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.gq-option-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.gq-option-btn.selected {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.gq-option-btn-icon {
    margin: 0 auto 1rem;
    color: #ffffff;
}

.gq-option-btn-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.gq-option-btn-subtitle {
    font-size: 0.875rem;
    color: #d1d5db;
}

/* Service Buttons */
.gq-service-btn {
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}

.gq-service-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.gq-service-btn.selected {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.gq-service-btn-icon {
    margin: 0 auto 0.75rem;
    color: #ffffff;
}

.gq-service-btn-label {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
}

.gq-service-check {
    margin: 0.5rem auto 0;
    color: #ffffff;
}

/* Form Elements */
.gq-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gq-form-group {
    display: flex;
    flex-direction: column;
}

.gq-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.gq-form-input,
.gq-form-textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.gq-form-input::placeholder,
.gq-form-textarea::placeholder {
    color: #6b7280;
}

.gq-form-input:focus,
.gq-form-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.gq-form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Summary Box */
.gq-summary {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
}

.gq-summary-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gq-summary-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #d1d5db;
}

.gq-summary-content strong {
    font-weight: 600;
}

/* Buttons */
.gq-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gq-btn-primary {
    background-color: #ffffff;
    color: #0A1F44;
}

.gq-btn-primary:hover {
    background-color: #f3f4f6;
}

.gq-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gq-btn-outline {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.gq-btn-outline:hover {
    background-color: #ffffff;
    color: #0A1F44;
}

.gq-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.gq-btn-full {
    width: 100%;
}

/* Button Group */
.gq-btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.gq-btn-group-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Success Screen */
.gq-success {
    animation: scaleIn 0.5s ease-out;
    text-align: center;
    padding: 3rem;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gq-success-icon-wrapper {
    width: 5rem;
    height: 5rem;
    background-color: rgba(74, 222, 128, 0.15);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.gq-success-icon {
    color: #22c55e;
}

.gq-success-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.gq-success-text {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.gq-success-subtext {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* Security Text */
.gq-security-text {
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* Loading State */
.gq-loading {
    text-align: center;
    padding: 3rem;
    color: #ffffff;
    font-size: 1.125rem;
}

/* Icon Sizing */
.gq-icon-sm {
    width: 14px;
    height: 14px;
}

.gq-icon-md {
    width: 20px;
    height: 20px;
}

.gq-icon-lg {
    width: 32px;
    height: 32px;
}

.gq-icon-xl {
    width: 48px;
    height: 48px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .gq-header h2 {
        font-size: 1.875rem;
    }
    
    .gq-header p {
        font-size: 1rem;
    }
    
    .gq-card-content {
        padding: 1.5rem;
    }
    
    .gq-option-btn {
        padding: 1.5rem;
    }
}

/* Hide default elements */
.gq-questionnaire-wrapper * {
    box-sizing: border-box;
}

.gq-questionnaire-wrapper button {
    font-family: inherit;
}

.gq-questionnaire-wrapper input,
.gq-questionnaire-wrapper textarea {
    font-family: inherit;
}
