/* Shared page-level layout used by every CPStudioBasePage child. */

.page-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--cpd-space-2xl);
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .page-container {
        padding: var(--cpd-space-lg);
    }
}

.page-header {
    margin-bottom: var(--cpd-space-3xl);
    text-align: center;
}

.page-title {
    color: var(--cpd-text);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--cpd-space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--cpd-space-sm);
}

.page-title i {
    color: var(--cpd-gold);
}

.page-subtitle {
    color: var(--cpd-text-muted);
    font-size: 1.1rem;
    opacity: 0.8;
}

.summary-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--cpd-space-lg);
    max-width: 100%;
    margin: 0;
}

.summary-card {
    background: var(--cpd-surface-1);
    border: 1px solid var(--cpd-border);
    border-radius: var(--cpd-radius-lg);
    padding: var(--cpd-space-lg);
    margin-bottom: 0;
    height: fit-content;
}

.summary-title {
    color: var(--cpd-gold);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--cpd-space-lg);
    display: flex;
    align-items: center;
    gap: var(--cpd-space-sm);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: var(--cpd-space-sm) 0;
    border-bottom: 1px solid var(--cpd-border-subtle);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--cpd-text-muted);
}

.summary-value {
    color: var(--cpd-text);
    font-weight: 500;
}

.form-actions {
    text-align: right;
}

/* Primary action button — aligned with the brand gold (matches .btn-gold). */
.btn-primary {
    background-color: var(--cpd-gold);
    color: var(--cpd-dark);
    border: 1px solid var(--cpd-gold);
    padding: 0.5rem 1.2rem;
    border-radius: var(--cpd-radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--cpd-transition-fast), color var(--cpd-transition-fast);
}

.btn-primary:hover {
    background-color: var(--cpd-dark);
    color: var(--cpd-gold);
}

.btn-secondary {
    background-color: var(--cpd-surface-3);
    color: var(--cpd-text);
    border: 1px solid var(--cpd-border-strong);
    padding: 0.5rem 1.2rem;
    border-radius: var(--cpd-radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--cpd-transition-fast);
}

.btn-secondary:hover {
    background-color: var(--cpd-surface-hover);
}

.btn-sm {
    padding: 0.2rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--cpd-radius-md);
}
