.ast-guideline-widget {
    box-sizing: border-box;
    max-width: 1100px;
    margin: 0 auto 24px;
    padding: 24px;
    border: 1px solid #d7dde8;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.ast-guideline-widget *,
.ast-guideline-widget *::before,
.ast-guideline-widget *::after {
    box-sizing: border-box;
}

.ast-guideline-header h2 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    line-height: 1.2;
}

.ast-guideline-header p {
    margin: 0 0 18px;
    color: #5f6b7a;
}

.ast-guideline-loading {
    color: #5f6b7a;
}

.ast-guideline-alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.ast-guideline-alert-success {
    border: 1px solid #b7ebc6;
    background: #eefbf2;
    color: #176b33;
}

.ast-guideline-alert-error {
    border: 1px solid #f3b5b5;
    background: #fff1f1;
    color: #9f1d1d;
}

.ast-guideline-alert-info {
    border: 1px solid #bfd8ff;
    background: #f0f6ff;
    color: #174a8b;
}

.ast-guideline-field {
    margin-bottom: 16px;
}

.ast-guideline-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.ast-guideline-field label span {
    color: #b42318;
}

.ast-guideline-field select,
.ast-guideline-field input,
.ast-guideline-field textarea {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font: inherit;
}

.ast-guideline-field textarea {
    resize: vertical;
}

.ast-guideline-field select:focus,
.ast-guideline-field input:focus,
.ast-guideline-field textarea:focus {
    outline: none;
    border-color: #4f7ecb;
    box-shadow: 0 0 0 3px rgba(79, 126, 203, 0.18);
}

.ast-guideline-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
}

.ast-guideline-pdf-wrap {
    margin: 0 0 22px;
    border: 1px solid #d7dde8;
    border-radius: 10px;
    overflow: hidden;
}

.ast-guideline-pdf-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #d7dde8;
    background: #f8fafc;
    font-weight: 700;
}

.ast-guideline-pdf-header a {
    font-weight: 400;
}

.ast-guideline-pdf {
    display: block;
    width: 100%;
    height: 720px;
    border: 0;
    background: #f8fafc;
}

.ast-guideline-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: #2f5fa7;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ast-guideline-submit:hover,
.ast-guideline-submit:focus {
    background: #244c88;
}

.ast-guideline-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ast-guideline-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .ast-guideline-widget {
        padding: 16px;
    }

    .ast-guideline-meta {
        grid-template-columns: 1fr;
    }

    .ast-guideline-pdf {
        height: 520px;
    }

    .ast-guideline-pdf-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
