/* ===========================
   Guide Verification Page
   =========================== */

/* Page hero - green theme for guide */
.guide-hero {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: #fff;
    text-align: center;
    padding: 120px 24px 60px;
}
.guide-hero h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    margin-bottom: 12px;
}
.guide-hero p {
    font-size: 16px;
    opacity: 0.9;
}

/* Application section */
.guide-app-section {
    padding: 48px 24px 120px;
    background: var(--bg-light);
    min-height: 60vh;
}
.guide-app-inner {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 32px;
}

/* Progress bar */
.progress-bar {
    margin-bottom: 32px;
}
.progress-bar-track {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}
.progress-bar-segment {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #E0E0E0;
    transition: background 0.3s;
}
.progress-bar-segment.active {
    background: #43a047;
}
.progress-bar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-sub);
}
.progress-bar-info .step-label {
    font-weight: 700;
    color: #2e7d32;
}

/* Form steps */
.form-step {
    display: none;
}
.form-step.active {
    display: block;
    animation: gvFadeIn 0.3s ease;
}
@keyframes gvFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step header */
.step-header {
    margin-bottom: 24px;
}
.step-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}
.step-header p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
}

/* Intro screen */
.intro-icon {
    text-align: center;
    margin-bottom: 16px;
    color: #43a047;
}
.intro-icon svg {
    width: 64px;
    height: 64px;
}
.intro-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}
.intro-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 32px;
}

/* Benefits box (green theme) */
.benefits-box {
    background: rgba(46, 125, 50, 0.06);
    border: 1px solid rgba(46, 125, 50, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}
.benefits-box h3 {
    font-size: 15px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 12px;
}
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-main);
}
.benefits-list li .icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.benefits-list li .icon svg {
    width: 16px;
    height: 16px;
    stroke: white;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Requirements box */
.requirements-box {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}
.requirements-box h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}
.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.requirements-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-sub);
}
.requirements-list li .req-icon {
    color: #43a047;
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.requirements-list li .req-icon svg {
    width: 18px;
    height: 18px;
    stroke: #43a047;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Review timeline note */
.review-note {
    background: rgba(46, 125, 50, 0.06);
    border-left: 3px solid #43a047;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 24px;
    line-height: 1.6;
}
.review-note strong {
    color: var(--text-main);
}

/* Intro start button */
.btn-start {
    display: block;
    width: 100%;
    padding: 16px;
    background: #43a047;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-start:hover {
    background: #2e7d32;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* Form fields */
.form-field {
    margin-bottom: 20px;
}
.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}
.form-field label .required {
    color: #E53935;
    font-size: 12px;
    margin-left: 4px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: #fff;
}
.form-field input:focus {
    outline: none;
    border-color: #43a047;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

/* Qualification categories */
.qual-category {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}
.qual-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
    user-select: none;
}
.qual-category-header:hover {
    background: var(--bg-light);
}
.qual-category-header .cat-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.qual-category-header .cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}
.qual-category-header .cat-icon svg {
    width: 20px;
    height: 20px;
    stroke: #43a047;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.qual-category-header .cat-chevron {
    font-size: 12px;
    color: var(--text-light);
    transition: transform 0.2s;
}
.qual-category.expanded .cat-chevron {
    transform: rotate(90deg);
}
.qual-category-items {
    display: none;
    border-top: 1px solid var(--border);
}
.qual-category.expanded .qual-category-items {
    display: block;
}
.qual-item {
    display: flex;
    align-items: center;
    padding: 12px 16px 12px 44px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.qual-item:last-child {
    border-bottom: none;
}
.qual-item:hover {
    background: rgba(46, 125, 50, 0.04);
}
.qual-item.selected {
    background: rgba(46, 125, 50, 0.08);
}
.qual-item .qual-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    transition: all 0.2s;
}
.qual-item.selected .qual-check {
    background: #43a047;
    border-color: #43a047;
}
.qual-item .qual-name {
    font-size: 14px;
    color: var(--text-main);
}

/* Selected qualification count */
.selected-count {
    text-align: center;
    font-size: 14px;
    color: #2e7d32;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 8px;
}

/* Image upload areas */
.cert-upload-area {
    border: 2px dashed rgba(46, 125, 50, 0.4);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(46, 125, 50, 0.02);
    margin-bottom: 8px;
}
.cert-upload-area:hover {
    border-color: #43a047;
    background: rgba(46, 125, 50, 0.05);
}
.cert-upload-area .upload-icon {
    font-size: 36px;
    margin-bottom: 8px;
    color: #43a047;
}
.cert-upload-area .upload-text {
    font-size: 14px;
    color: var(--text-sub);
}

/* Certificate photos grid */
.cert-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.cert-photo-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #43a047;
}
.cert-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cert-photo-item .remove-photo {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.cert-photo-add {
    aspect-ratio: 4/3;
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
    gap: 4px;
    font-size: 13px;
    color: var(--text-sub);
}
.cert-photo-add:hover {
    border-color: #43a047;
}
.cert-photo-add .add-icon {
    font-size: 24px;
    color: #43a047;
}
.cert-photo-counter {
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 8px;
    text-align: right;
}

/* Notice box */
.notice-box {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 16px;
    margin-top: 20px;
}
.notice-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-sub);
    padding: 4px 0;
}
.notice-item .notice-icon {
    font-size: 14px;
    flex-shrink: 0;
}

/* Confirmation section */
.confirmation-box {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}
.confirmation-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.confirmation-qual-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.confirmation-qual-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-main);
}
.confirmation-qual-list li .qual-check-icon {
    color: #43a047;
    font-size: 16px;
}
.confirmation-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}
.confirmation-row {
    display: flex;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.confirmation-row:last-child {
    border-bottom: none;
}
.confirmation-row .conf-label {
    width: 140px;
    flex-shrink: 0;
    color: var(--text-sub);
    font-weight: 500;
}
.confirmation-row .conf-value {
    color: var(--text-main);
}

/* Certificate preview in confirmation */
.cert-preview-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}
.cert-preview-scroll img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

/* Consent */
.consent-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0 16px;
    cursor: pointer;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 10px;
}
.consent-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    font-size: 14px;
    color: #fff;
    margin-top: 2px;
}
.consent-box.checked .consent-checkbox {
    background: #43a047;
    border-color: #43a047;
}
.consent-text {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
}
.submit-note {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Navigation buttons (green theme) */
.form-nav {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.btn-back {
    flex: 1;
    padding: 14px 24px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: #fff;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-back:hover {
    background: var(--bg-light);
}
.btn-next,
.btn-submit {
    flex: 2;
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    background: #43a047;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-next:hover,
.btn-submit:hover {
    background: #2e7d32;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}
.btn-next:disabled,
.btn-submit:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

/* Success message */
.success-message {
    text-align: center;
    padding: 48px 24px;
}
.success-message .success-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}
.success-message h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}
.success-message p {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 8px;
}
.success-message .btn-home {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 48px;
    background: #43a047;
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
}
.success-message .btn-home:hover {
    background: #2e7d32;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gvSpin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes gvSpin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .guide-app-inner {
        padding: 24px 16px;
        border-radius: 0;
        box-shadow: none;
    }
    .guide-app-section {
        padding: 24px 0 100px;
    }
    .confirmation-row {
        flex-direction: column;
        gap: 2px;
    }
    .confirmation-row .conf-label {
        width: auto;
        font-size: 12px;
    }
}
@media (max-width: 480px) {
    .guide-hero {
        padding: 100px 16px 40px;
    }
    .cert-photos-grid {
        grid-template-columns: 1fr;
    }
    .form-nav {
        flex-direction: column-reverse;
    }
    .btn-back, .btn-next, .btn-submit {
        flex: none;
        width: 100%;
    }
}
