/* =============================================
   GSC Service Configurator - Frontend Styles
   ============================================= */

/* =============================================
   CUSTOM FONTS (@font-face)
   ============================================= */
@font-face {
    font-family: 'GSC Antiqua';
    src: url('../fonts/MaschineAntiqua.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GSC Gotik';
    src: url('../fonts/MaschineGotik.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GSC Pinsel';
    src: url('../fonts/MaschinePinsel.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GSC Stein';
    src: url('../fonts/MaschineStein.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.gsc-service-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

/* =============================================
   STEP NAVIGATION (Segment-Leiste)
   ============================================= */
.gsc-steps-nav {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    overflow-x: auto;
    min-width: max-content;
}

.gsc-step-item {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 500;
    color: #999;
    background: #f0f0f0;
    border-right: 1px solid #ddd;
    cursor: default;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: none;
}

.gsc-step-item:first-child {
    border-radius: 8px 0 0 8px;
}

.gsc-step-item:last-child {
    border-radius: 0 8px 8px 0;
    border-right: none;
}

.gsc-step-item.active {
    background: #2c3e50;
    color: #fff;
    font-weight: 600;
}

.gsc-step-item.completed {
    background: #27ae60;
    color: #fff;
    cursor: pointer;
}

.gsc-step-item.completed:hover {
    background: #219a52;
}

.gsc-step-number {
    display: inline;
    margin-right: 4px;
    font-weight: bold;
}

.gsc-step-label {
    display: inline;
}

/* =============================================
   FORM ELEMENTS
   ============================================= */
.gsc-step h2 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.gsc-form-group {
    margin-bottom: 20px;
}

.gsc-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
    font-size: 14px;
}

.gsc-form-group label .required {
    color: #d9534f;
}

.gsc-form-group select,
.gsc-form-group input[type="text"],
.gsc-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.gsc-form-group select:focus,
.gsc-form-group input:focus,
.gsc-form-group textarea:focus {
    border-color: #2c3e50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.gsc-form-group select:disabled {
    background: #f5f5f5;
    color: #999;
}

.gsc-error {
    border-color: #d9534f !important;
    animation: gsc-shake 0.3s;
}

@keyframes gsc-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.gsc-highlight {
    animation: gsc-pulse 0.5s;
}

@keyframes gsc-pulse {
    0% { border-color: #ddd; }
    50% { border-color: #2c3e50; box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.2); }
    100% { border-color: #ddd; }
}

/* =============================================
   INFO & HINTS
   ============================================= */
.gsc-info-text {
    padding: 8px 12px;
    background: #e8f4fd;
    color: #2c3e50;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 8px;
}

.gsc-hint-box {
    padding: 12px 16px;
    background: #fff8e1;
    border-left: 4px solid #e8a735;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
    margin-bottom: 16px;
}

.gsc-warning {
    padding: 10px 14px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 13px;
    margin-top: 8px;
}

/* =============================================
   SERVICE SELECTION GRID
   ============================================= */
.gsc-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gsc-service-card {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.gsc-service-card:hover {
    border-color: #2c3e50;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.15);
}

.gsc-service-card.selected {
    border-color: #2c3e50;
    background: #f0f5fb;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.2);
}

.gsc-service-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #333;
}

.gsc-service-card p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* =============================================
   OPTION CARDS (Grave type, Finish, Font)
   ============================================= */
.gsc-grave-type-grid,
.gsc-finish-grid,
.gsc-font-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.gsc-option-card {
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: #fff;
}

.gsc-option-card:hover {
    border-color: #2c3e50;
}

.gsc-option-card.selected {
    border-color: #2c3e50;
    background: #f0f5fb;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.2);
}

.gsc-option-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.gsc-option-price {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

/* =============================================
   SPECIAL CHARACTERS BAR
   ============================================= */
.gsc-special-chars-bar {
    display: flex;
    gap: 6px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.gsc-special-char-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gsc-special-char-btn:hover {
    background: #e8f4fd;
    border-color: #2c3e50;
}

/* =============================================
   CHARACTER COUNTER
   ============================================= */
.gsc-char-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
    gap: 8px;
}

#gsc-char-price-display {
    font-weight: 600;
    color: #2c3e50;
}

/* =============================================
   COLOR SELECTION
   ============================================= */
.gsc-color-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.gsc-color-swatch {
    width: 70px;
    height: 70px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 4px;
}

.gsc-color-swatch.selected {
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.3);
}

.gsc-color-label {
    font-size: 10px;
    color: #666;
    text-align: center;
}

/* Color backgrounds */
.gsc-color-blau { background: #3366cc; }
.gsc-color-blau .gsc-color-label { color: #fff; }
.gsc-color-braun { background: #8B4513; }
.gsc-color-braun .gsc-color-label { color: #fff; }
.gsc-color-rotbraun { background: #A0522D; }
.gsc-color-rotbraun .gsc-color-label { color: #fff; }
.gsc-color-wei { background: #fff; border-color: #ccc; }
.gsc-color-schwarz { background: #222; }
.gsc-color-schwarz .gsc-color-label { color: #fff; }

/* =============================================
   FINISH TOGGLE
   ============================================= */
.gsc-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
}

.gsc-toggle-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

/* =============================================
   PHOTO UPLOAD
   ============================================= */
.gsc-upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
    background: #fafafa;
}

.gsc-upload-zone.gsc-dragover {
    border-color: #2c3e50;
    background: #f0f5fb;
}

.gsc-upload-zone.gsc-uploading {
    opacity: 0.5;
    pointer-events: none;
}

.gsc-upload-placeholder .dashicons {
    font-size: 40px;
    color: #999;
    display: block;
    margin-bottom: 10px;
}

.gsc-upload-btn {
    background: #2c3e50;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.gsc-upload-btn:hover {
    background: #1e4070;
}

.gsc-upload-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.gsc-upload-preview {
    position: relative;
}

.gsc-upload-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.gsc-upload-remove {
    position: absolute;
    top: -8px;
    right: calc(50% - 114px);
    background: #d9534f;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
}

/* =============================================
   SUMMARY
   ============================================= */
.gsc-summary-box {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.gsc-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.gsc-summary-table th {
    text-align: left;
    padding: 8px 10px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
    width: 40%;
    vertical-align: top;
}

.gsc-summary-table td {
    padding: 8px 10px;
    font-size: 14px;
    color: #333;
}

.gsc-summary-table .gsc-price-col {
    text-align: right;
    font-weight: 600;
}

.gsc-summary-divider td {
    padding: 4px 0;
}

.gsc-summary-divider hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 0;
}

.gsc-summary-total th,
.gsc-summary-total td {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    padding-top: 12px;
    border-top: 2px solid #2c3e50;
}

.gsc-summary-photo {
    max-width: 100px;
    border-radius: 4px;
}

/* =============================================
   NAVIGATION BUTTONS
   ============================================= */
.gsc-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.gsc-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gsc-btn-primary {
    background: #2c3e50;
    color: #fff;
    margin-left: auto;
}

.gsc-btn-primary:hover {
    background: #1e4070;
}

.gsc-btn-primary:disabled {
    background: #999;
    cursor: not-allowed;
}

.gsc-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.gsc-btn-secondary:hover {
    background: #e0e0e0;
}

/* =============================================
   INLINE PRICE DISPLAY
   ============================================= */
.gsc-price-display {
    background: #f0f5fb;
    border: 2px solid #2c3e50;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 24px;
}

.gsc-price-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
}

.gsc-price-row.gsc-price-total {
    border-top: 2px solid #2c3e50;
    margin-top: 6px;
    padding-top: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.gsc-price-label {
    color: #555;
}

.gsc-price-value {
    font-weight: 600;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .gsc-service-wrap {
        padding: 10px;
    }

    .gsc-service-grid,
    .gsc-grave-type-grid,
    .gsc-finish-grid,
    .gsc-font-grid {
        grid-template-columns: 1fr;
    }

    .gsc-steps-nav {
        gap: 0;
    }

    .gsc-step-item {
        padding: 8px 6px;
        font-size: 11px;
    }

    .gsc-price-sticky {
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .gsc-summary-table th {
        width: 35%;
    }

    .gsc-nav-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .gsc-btn {
        width: 100%;
        text-align: center;
    }

    .gsc-btn-primary {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .gsc-color-grid {
        gap: 6px;
    }

    .gsc-color-swatch {
        width: 55px;
        height: 55px;
    }
}

/* =============================================
   GRAVE TYPE ICONS / IMAGES
   ============================================= */
.gsc-grave-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
}

.gsc-grave-icon svg {
    width: 100%;
    height: 100%;
}

.gsc-grave-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.gsc-grave-card {
    padding: 20px 16px;
}

/* =============================================
   CONFIRMATION SECTIONS
   ============================================= */
.gsc-confirm-section {
    margin-top: 20px;
    padding: 16px;
    background: #fff8e1;
    border: 2px solid #ffc107;
    border-radius: 8px;
}

.gsc-confirm-section.gsc-error {
    border-color: #d9534f;
    animation: gsc-shake 0.3s;
}

.gsc-confirm-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.gsc-confirm-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 2px;
    cursor: pointer;
}

/* =============================================
   FONT PREVIEW STYLES
   ============================================= */
.gsc-font-preview {
    font-size: 18px;
    padding: 8px 0;
    color: #555;
    min-height: 30px;
}

.gsc-font-no-preview {
    font-size: 12px;
    color: #999;
    font-style: italic;
    padding: 8px 0;
}

.gsc-font-gotik {
    font-family: 'GSC Gotik', serif;
    /* text-transform: uppercase; */
}

.gsc-font-antiqua {
    font-family: 'GSC Antiqua', serif;
}

.gsc-font-pinsel {
    font-family: 'GSC Pinsel', cursive;
}

.gsc-font-stein {
    font-family: 'GSC Stein', serif;
    font-weight: 700;
}

/* =============================================
   SUMMARY TEXT PREVIEW
   ============================================= */
.gsc-summary-text-preview {
    margin-top: 20px;
    padding: 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.gsc-summary-text-preview h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.gsc-text-preview-box {
    font-size: 22px;
    color: #333;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    white-space: pre-wrap;
    line-height: 1.6;
    min-height: 40px;
}

/* =============================================
   DISABLED BUTTON
   ============================================= */
.gsc-btn-disabled {
    background: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* =============================================
   SUCCESS BOX & CROSS-SELL
   ============================================= */
.gsc-success-box {
    text-align: center;
    padding: 40px 20px;
}

.gsc-success-box h3 {
    color: #27ae60;
    font-size: 22px;
    margin-bottom: 10px;
}

.gsc-success-box p {
    color: #555;
    font-size: 15px;
}

.gsc-crosssell-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
}

.gsc-crosssell-btn {
    display: inline-block;
    text-decoration: none;
    min-width: 300px;
    text-align: center;
}

@media (max-width: 480px) {
    .gsc-crosssell-btn {
        min-width: auto;
        width: 100%;
    }
}

/* Uppercase-only fonts (e.g. Antiqua) */
.gsc-uppercase {
    text-transform: uppercase;
}
.gsc-font-uppercase-hint {
    font-size: 11px;
    color: #e67e22;
    margin-top: 4px;
    font-style: italic;
}
