@font-face {
    font-family: 'Archivo Black';
    src: url('../fonts/ArchivoBlack-Regular.woff2') format('woff2'),
         url('../fonts/ArchivoBlack-Regular.woff') format('woff'),
         url('../fonts/ArchivoBlack-Regular.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: block;
}

/* ==================== BUTON DESCHIDERE ==================== */
.stampile-circular-btn-open {
    display: inline-block;
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stampile-circular-btn-open:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
}

/* ==================== MODAL ==================== */
.stampile-circular-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.stampile-circular-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.stampile-circular-content {
    position: relative;
    background: white;
    max-width: 1200px;
    max-height: 90vh;
    margin: 5vh auto;
    padding: 40px;
    border-radius: 20px;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.stampile-circular-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.stampile-circular-close:hover {
    background: #d32f2f;
    transform: rotate(90deg);
}

.stampile-circular-title {
    text-align: center;
    font-size: 32px;
    color: #9C27B0;
    margin-bottom: 30px;
}

/* ==================== STEPS ==================== */
.step-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #9C27B0;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #9C27B0;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 20px;
}

/* ==================== DIMENSIUNI ==================== */
.dimensiuni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.dimensiune-card {
    background: white;
    border: 3px solid #ddd;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.dimensiune-card:hover {
    border-color: #9C27B0;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(156, 39, 176, 0.2);
}

.dimensiune-card.selected {
    border-color: #9C27B0;
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    box-shadow: 0 5px 20px rgba(156, 39, 176, 0.3);
}

.dimensiune-icon {
    margin-bottom: 10px;
}

.dimensiune-icon svg {
    display: block;
    margin: 0 auto;
}

.dimensiune-card h4 {
    font-size: 24px;
    color: #333;
    margin: 10px 0;
}

.dimensiune-pret {
    font-size: 22px;
    font-weight: bold;
    color: #9C27B0;
    margin: 10px 0;
}

.dimensiune-diametru {
    margin: 5px 0;
    color: #666;
    font-size: 13px;
    font-style: italic;
}

/* ==================== FORMULAR DATE ==================== */
.date-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .date-container {
        grid-template-columns: 1fr;
    }
}

.date-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-control {
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
    font-family: Arial, sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #9C27B0;
}

.form-hint {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* ==================== PREVIEW CANVAS ==================== */
.preview-circular {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-circular h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}






.canvas-wrapper {
    border: 3px solid #9C27B0;
    border-radius: 15px;
    padding: 10px;  /* ✅ Mai mic */
    background: #f9f9f9;
}

#stampila-circular-canvas,
#stampila-circular-final {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== CULORI ==================== */
.culori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.culoare-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 3px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.culoare-option:hover {
    border-color: #9C27B0;
    transform: translateY(-3px);
}

.culoare-option.selected {
    border-color: #9C27B0;
    background: #f3e5f5;
}

.culoare-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #333;
}

.culoare-option span {
    font-weight: 600;
    color: #333;
}

/* ==================== ACCESORII ==================== */
.accesorii-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.accesoriu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.accesoriu-item:hover {
    border-color: #9C27B0;
    background: #f3e5f5;
}

.accesoriu-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.accesoriu-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accesoriu-info strong {
    font-size: 18px;
    color: #333;
}

.accesoriu-pret {
    font-size: 18px;
    font-weight: bold;
    color: #9C27B0;
}

/* ==================== PREVIEW FINAL ==================== */
.preview-final-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .preview-final-container {
        grid-template-columns: 1fr;
    }
}

.preview-final-canvas {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #9C27B0;
    border-radius: 15px;
    padding: 20px;
    background: #f9f9f9;
}

.preview-final-summary h4 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

#config-summary ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

#config-summary li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.preview-final-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #378816;
    color: white;
    border-radius: 10px;
    font-size: 24px;
    margin-top: 20px;
}

.mesaj-contact {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    border-radius: 5px;
}

/* ==================== FOOTER BUTOANE ==================== */
.stampile-circular-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.btn-primary,
.btn-secondary,
.btn-success {
    padding: 15px 35px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary,
.stampile-circular-footer .btn-primary,
.stampile-circular-content .btn-primary,
#btn-next {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.btn-primary:hover,
.stampile-circular-footer .btn-primary:hover,
.stampile-circular-content .btn-primary:hover,
#btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
    color: #ffffff !important;
    background: linear-gradient(135deg, #7B1FA2 0%, #6A1B9A 100%) !important;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.btn-primary:disabled,
.btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .stampile-circular-content {
        max-width: 81%;
        width: 81%;
        padding: 20px;
        margin: 2vh 10px;
    }
    
    .stampile-circular-title {
        font-size: 24px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .stampile-circular-footer {
        flex-direction: column;
    }
}

/* ==================== OVERRIDE TEMA - BUTON CONTINUA ==================== */
.stampile-circular-modal .btn-primary,
.stampile-circular-content .btn-primary,
.stampile-circular-footer .btn-primary,
.stampile-circular-modal #btn-next,
.stampile-circular-content #btn-next,
.stampile-circular-footer #btn-next,
button#btn-next.btn-primary {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.stampile-circular-modal .btn-primary:hover,
.stampile-circular-content .btn-primary:hover,
.stampile-circular-footer .btn-primary:hover,
.stampile-circular-modal #btn-next:hover,
.stampile-circular-content #btn-next:hover,
.stampile-circular-footer #btn-next:hover,
button#btn-next.btn-primary:hover {
    background: linear-gradient(135deg, #7B1FA2 0%, #6A1B9A 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
