/* ── PDGA Section ─────────────────────────────────────────────────────────── */

:root {
    --primary-red: #C8102E;
    --highlight-cyan: #00B4D8;
    --dark-navy: #0F172A;
    --success-green: #22C55E;
    --bg-white: #FFFFFF;
    --bg-soft-gray: #F8FAFC;
}

.pdga-section {
    padding: 24px;
    background: var(--bg-white);
    border-radius: 8px;
    margin-top: 24px;
    border: 1px solid #E2E8F0;
}

.pdga-section__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--dark-navy);
}

.pdga-section__intro {
    font-size: 14px;
    color: #64748B;
    margin: 0 0 20px;
}

/* ── Fields ───────────────────────────────────────────────────────────────── */

.pdga-field {
    margin-bottom: 16px;
}

.pdga-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-navy);
    margin-bottom: 6px;
}

.pdga-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-soft-gray);
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    color: var(--dark-navy);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.pdga-input:focus {
    outline: none;
    border-color: var(--highlight-cyan);
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.1);
}

/* ── Inline field (virtual rating row) ───────────────────────────────────── */

.pdga-inline-field {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pdga-inline-field .pdga-input {
    max-width: 140px;
}

/* ── Linked info block ────────────────────────────────────────────────────── */

.pdga-linked-info {
    margin-bottom: 20px;
}

.pdga-linked-info__row {
    display: flex;
    gap: 12px;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid #E2E8F0;
}

.pdga-linked-info__label {
    color: var(--highlight-cyan);
    min-width: 120px;
    font-weight: 600;
}

.pdga-linked-info__value {
    color: var(--dark-navy);
    font-weight: 500;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.pdga-btn {
    display: inline-block !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.2s !important;
    line-height: 1.2 !important;
    width: auto !important;
    min-height: 0 !important;
    height: auto !important;
    flex-shrink: 0 !important;
}

.pdga-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* ── Button variants ─────────────────────────────────────────────────────── */

.pdga-btn--primary {
    background: var(--primary-red) !important;
    color: #ffffff !important;
}

.pdga-btn--primary:hover:not(:disabled) {
    opacity: 0.85 !important;
}

.pdga-btn--danger {
    background: transparent !important;
    color: var(--primary-red) !important;
    border: 2px solid var(--primary-red) !important;
}

.pdga-btn--danger:hover:not(:disabled) {
    background: var(--primary-red) !important;
    color: #ffffff !important;
}

#pdga-unlink-btn {
    margin-top: 20px;
}

/* ── Actions section (grouped buttons) ────────────────────────────────────── */

.pdga-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 16px;
}

@media (max-width: 639px) {
    .pdga-actions {
        flex-direction: column;
    }

    .pdga-actions .pdga-btn {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ── Virtual rating form spacing ─────────────────────────────────────────── */

.pdga-virtual-rating-form {
    margin-bottom: 20px;
}

.pdga-virtual-rating-form .pdga-label {
    margin-bottom: 8px;
}

#pdga-virtual-rating {
    max-width: 140px;
}

/* ── Messages ─────────────────────────────────────────────────────────────── */

.pdga-message {
    margin-top: 14px;
    font-size: 13px;
    min-height: 18px;
}

.pdga-message--success {
    color: var(--success-green);
}

.pdga-message--error {
    color: var(--primary-red);
}
