/* ==========================================================================
   AXSOL Guide Download — Front Modal
   ========================================================================== */

/* Overlay */
.axsol-guide-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: axsolFadeIn 0.3s ease;
}

@keyframes axsolFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal */
.axsol-guide-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: axsolSlideUp 0.3s ease;
}

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

.axsol-guide-modal-body {
    padding: 32px;
}

/* Close button */
.axsol-guide-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
    z-index: 1;
}

.axsol-guide-close:hover {
    color: #333;
}

/* Icon */
.axsol-guide-icon {
    text-align: center;
    margin-bottom: 16px;
    color: #0055A4;
}

/* Title & description */
.axsol-guide-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 8px;
    line-height: 1.3;
}

.axsol-guide-modal-desc {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Form */
.axsol-guide-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.axsol-guide-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.axsol-guide-field .required {
    color: #dc3232;
}

.axsol-guide-field .optional {
    font-weight: 400;
    color: #999;
    font-size: 12px;
}

.axsol-guide-field input,
.axsol-guide-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.axsol-guide-field input:focus,
.axsol-guide-field textarea:focus {
    outline: none;
    border-color: #0055A4;
    box-shadow: 0 0 0 3px rgba(0, 85, 164, 0.1);
}

.axsol-guide-field textarea {
    resize: vertical;
    min-height: 70px;
}

/* Error */
.axsol-guide-error {
    background: #fef0f0;
    color: #dc3232;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid #fcd5d5;
}

/* Submit button */
.axsol-guide-submit {
    width: 100%;
    padding: 12px;
    background: #0055A4;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.axsol-guide-submit:hover {
    background: #003d7a;
}

.axsol-guide-submit:disabled {
    background: #7faed4;
    cursor: not-allowed;
}

/* Success state */
.axsol-guide-success {
    text-align: center;
    padding: 20px 0;
}

.axsol-guide-success-icon {
    color: #46b450;
    margin-bottom: 12px;
}

.axsol-guide-success h3 {
    font-size: 22px;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.axsol-guide-success p {
    color: #666;
    margin: 0 0 16px;
    font-size: 14px;
}

.axsol-guide-manual-link {
    display: inline-block;
    color: #0055A4;
    font-size: 13px;
    text-decoration: underline;
}

.axsol-guide-manual-link:hover {
    color: #003d7a;
}

/* Privacy line */
.axsol-guide-privacy {
    text-align: center;
    font-size: 11px;
    color: #999;
    margin: 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* CTA button (shortcode) */
.axsol-guide-cta-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #0055A4;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

.axsol-guide-cta-btn:hover {
    background: #003d7a;
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 540px) {
    .axsol-guide-modal-body {
        padding: 24px 20px;
    }

    .axsol-guide-modal-title {
        font-size: 18px;
    }

    .axsol-guide-modal-desc {
        font-size: 13px;
    }

    .axsol-guide-icon svg {
        width: 36px;
        height: 36px;
    }
}
