/**
 * Debeam Print Theme - Modern Skin
 * 
 * Strict compliance:
 * - Scoped to .debeam-print-wizard
 * - Semantic tokens only
 * - No PHP/JS modification
 */

/* -------------------------------------------------------------------------
   Container & Reset
------------------------------------------------------------------------- */
.debeam-print-wizard {
    font-family: var(--ui-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
    color: var(--ui-text-body);
    line-height: 1.5;
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.debeam-print-wizard * {
    box-sizing: border-box;
}

/* Ensure the wizard container itself is styled if it's a direct child or the root */
.debeam-print-wizard .debeam-wizard-container,
.debeam-print-wizard.debeam-wizard-container {
    background: var(--ui-surface-page);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Soft shadow for app-like feel */
    border: 1px solid var(--ui-border-default);
    overflow: hidden;
    padding: 32px;
}

/* -------------------------------------------------------------------------
   Typography & Structure
------------------------------------------------------------------------- */
.debeam-print-wizard h2 {
    font-family: var(--ui-font-heading, inherit);
    color: var(--ui-text-heading);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.debeam-print-wizard p {
    color: var(--ui-text-body);
    margin-bottom: 16px;
}

.debeam-print-wizard .debeam-helper-text {
    color: var(--ui-text-muted);
    font-size: 14px;
}

/* -------------------------------------------------------------------------
   Form Elements (Theme Override)
------------------------------------------------------------------------- */
.debeam-print-wizard select,
.debeam-print-wizard input[type="text"],
.debeam-print-wizard input[type="email"],
.debeam-print-wizard input[type="number"],
.debeam-print-wizard textarea {
    appearance: none;
    -webkit-appearance: none;
    background: var(--ui-surface-card, #ffffff);
    border: 1px solid var(--ui-border-default);
    border-radius: 8px; /* Hardcoded radius as per rules */
    color: var(--ui-text-heading);
    padding: 12px 16px;
    font-size: 15px;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.debeam-print-wizard select:focus,
.debeam-print-wizard input:focus,
.debeam-print-wizard textarea:focus {
    outline: none;
    border-color: var(--ui-action-primary);
    box-shadow: 0 0 0 3px var(--ui-surface-muted, rgba(0,0,0,0.05)); /* Gentle focus ring */
}

/* Custom Select Arrow */
.debeam-print-wizard select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Labels */
.debeam-print-wizard label {
    display: block;
    font-weight: 600;
    color: var(--ui-text-heading);
    margin-bottom: 8px;
    font-size: 14px;
}

/* Checkboxes & Radios */
.debeam-print-wizard input[type="checkbox"],
.debeam-print-wizard input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--ui-border-default);
    background: var(--ui-surface-card);
    vertical-align: middle;
    margin-right: 8px;
    cursor: pointer;
    position: relative;
    border-radius: 4px; /* Checkbox default */
    transition: all 0.2s ease;
}

.debeam-print-wizard input[type="radio"] {
    border-radius: 50%;
}

.debeam-print-wizard input[type="checkbox"]:checked,
.debeam-print-wizard input[type="radio"]:checked {
    background-color: var(--ui-action-primary);
    border-color: var(--ui-action-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.debeam-print-wizard input[type="radio"]:checked {
    background-image: none;
}
.debeam-print-wizard input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: var(--ui-text-inverted);
    border-radius: 50%;
    margin: 4px;
}

/* -------------------------------------------------------------------------
   Photo Upload Area
------------------------------------------------------------------------- */
.debeam-print-wizard .debeam-upload-area {
    background: var(--ui-surface-muted, #f8f9fa);
    border: 2px dashed var(--ui-border-default);
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-bottom: 24px;
}

/* Hover State */
.debeam-print-wizard .debeam-upload-area:hover,
.debeam-print-wizard .debeam-upload-area.drag-over {
    background: var(--ui-surface-card); /* Lighter on hover */
    border-color: var(--ui-action-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Lift effect */
}

/* Icons within Upload Area */
.debeam-print-wizard .debeam-upload-area .dashicons,
.debeam-print-wizard .debeam-upload-area svg {
    font-size: 48px;
    width: 48px; /* For SVGs */
    height: 48px;
    color: var(--ui-text-muted);
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.debeam-print-wizard .debeam-upload-area:hover .dashicons {
    color: var(--ui-action-primary);
}

/* Text in Upload Area */
.debeam-print-wizard .debeam-upload-area p {
    font-size: 16px;
    font-weight: 600;
    color: var(--ui-text-heading);
    margin: 0;
}

.debeam-print-wizard .debeam-upload-area .sub-text {
    font-size: 14px;
    color: var(--ui-text-muted);
    margin-top: 8px;
    font-weight: 400;
}

/* -------------------------------------------------------------------------
   Buttons (Scoped)
------------------------------------------------------------------------- */
.debeam-print-wizard .debeam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    line-height: 1.2;
}

.debeam-print-wizard .debeam-btn--primary {
    background-color: var(--ui-action-primary);
    color: var(--ui-text-inverted);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.debeam-print-wizard .debeam-btn--primary:hover {
    background-color: var(--ui-action-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.debeam-print-wizard .debeam-btn--secondary {
    background-color: transparent;
    border: 1px solid var(--ui-border-default);
    color: var(--ui-text-heading);
}

.debeam-print-wizard .debeam-btn--secondary:hover {
    background-color: var(--ui-surface-muted);
    border-color: var(--ui-text-muted);
}

/* -------------------------------------------------------------------------
   Wizard Steps (Optional refinement)
------------------------------------------------------------------------- */
.debeam-print-wizard .debeam-wizard-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--ui-border-default);
}

.debeam-print-wizard .debeam-wizard-step {
    padding: 0 20px 16px;
    color: var(--ui-text-muted);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    margin: 0;
}

.debeam-print-wizard .debeam-wizard-step.active {
    color: var(--ui-action-primary);
}

.debeam-print-wizard .debeam-wizard-step.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ui-action-primary);
    border-radius: 2px 2px 0 0;
}

/* -------------------------------------------------------------------------
   Premium Micro-Interactions (Enhancement)
------------------------------------------------------------------------- */
.debeam-print-wizard .debeam-upload-area {
    /* Smooth, high-quality transitions */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.2s ease,
                background-color 0.2s ease;
    will-change: transform, box-shadow;
}

.debeam-print-wizard .debeam-upload-area:hover,
.debeam-print-wizard .debeam-upload-area.drag-over {
    /* Overrides previous hover state with gentler scale */
    transform: scale(1.005) translateY(0);
    /* Soft, diffused elevation shadow */
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.03), 
                0 4px 8px rgba(0, 0, 0, 0.02);
    border-color: var(--ui-action-primary);
    z-index: 1;
}

/* Accessibility Focus Ring */
.debeam-print-wizard .debeam-upload-area:focus-visible {
    outline: 2px solid var(--ui-action-primary);
    outline-offset: 4px;
    border-color: var(--ui-action-primary);
    z-index: 10;
}

/* Tactile feedback on click */
.debeam-print-wizard .debeam-upload-area:active {
    transform: scale(0.995);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .debeam-print-wizard .debeam-upload-area,
    .debeam-print-wizard .debeam-upload-area:hover,
    .debeam-print-wizard .debeam-upload-area:active {
        transition: none;
        transform: none !important;
        box-shadow: none;
    }
}
