@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.g12g-quiz-container, 
.g12g-cert-search-container { 
    background: #ffffff; 
    padding: 35px; 
    border-radius: 16px; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    font-family: 'Outfit', sans-serif; 
    max-width: 600px; 
    margin: 30px auto; 
    color: #2c3e50;
    transition: all 0.3s ease;
}

.g12g-quiz-step h3, 
.g12g-cert-search-container h3 { 
    margin-top: 0; 
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.g12g-quiz-step p, 
.g12g-cert-search-container p {
    color: #7f8c8d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.g12g-quiz-container input[type="text"], 
.g12g-cert-search-container input[type="text"] { 
    width: 100%; 
    padding: 12px 16px; 
    margin-bottom: 20px; 
    border: 1px solid #cbd5e1; 
    border-radius: 8px; 
    box-sizing: border-box; 
    font-family: inherit;
    font-size: 15px;
    color: #2c3e50;
    transition: all 0.2s ease;
}

.g12g-quiz-container input[type="text"]:focus, 
.g12g-cert-search-container input[type="text"]:focus {
    outline: none;
    border-color: #c8392b;
    box-shadow: 0 0 0 3px rgba(200, 57, 43, 0.15);
}

.g12g-btn { 
    background: #c8392b; 
    color: #fff; 
    padding: 12px 24px; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    display: inline-block; 
    text-decoration: none; 
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(200, 57, 43, 0.2), 0 2px 4px -1px rgba(200, 57, 43, 0.1);
}

.g12g-btn:hover { 
    background: #a52b1e; 
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(200, 57, 43, 0.3), 0 3px 6px -1px rgba(200, 57, 43, 0.15);
}

.g12g-btn:active {
    transform: translateY(0);
}

.g12g-btn-outline {
    background: #ffffff;
    color: #2c3e50;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

.g12g-btn-outline:hover {
    background: #f8fafc;
    color: #c8392b;
    border-color: #cbd5e1;
    box-shadow: none;
}

/* Option Cards styling */
.g12g-option-card { 
    display: block; 
    margin-bottom: 12px; 
    cursor: pointer; 
    background: #f8fafc; 
    padding: 14px 18px; 
    border: 1px solid #e2e8f0; 
    border-radius: 10px; 
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.g12g-option-card:hover { 
    background: #f1f5f9; 
    border-color: #c8392b;
    transform: translateY(-1px);
}

.g12g-option-card.selected {
    background: #fdf0ef;
    border-color: #c8392b;
    border-width: 1px;
    box-shadow: 0 0 0 1px #c8392b;
    color: #c8392b;
}

.g12g-option-card input[type="radio"] {
    margin-right: 10px;
    accent-color: #c8392b;
    transform: scale(1.1);
    vertical-align: middle;
}

/* Navigation buttons spacing */
.g12g-quiz-navigation { 
    margin-top: 30px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g12g-quiz-navigation #g12g-next-question,
.g12g-quiz-navigation #g12g-submit-quiz {
    margin-left: auto;
}

/* Progress bar tracking */
.g12g-progress-container {
    margin-bottom: 30px;
}

.g12g-progress-bar-label {
    font-size: 13px;
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.g12g-progress-bar-bg {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.g12g-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #c8392b 0%, #e67e22 50%, #27ae60 100%);
    width: 0%;
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Results dashboard styling */
.g12g-results-dashboard {
    text-align: center;
    padding: 10px 0;
}

.g12g-score-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    background: #eafaf1;
    border: 3px solid #27ae60;
    color: #27ae60;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 700;
    margin: 20px auto;
}

.g12g-results-feedback {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 30px;
}

.g12g-results-dashboard .g12g-btn {
    background: #27ae60;
    box-shadow: 0 4px 6px -1px rgba(39, 174, 96, 0.2);
}

.g12g-results-dashboard .g12g-btn:hover {
    background: #219653;
    box-shadow: 0 6px 8px -1px rgba(39, 174, 96, 0.3);
}

/* Search certificate results styling */
.g12g-cert-search-result {
    animation: g12gFadeIn 0.3s ease-out;
}

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