/* /assets/css/new-vendor.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html,
body {
    height: 100%;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: #f7f7f7;
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vendor-container {
    width: 100%;
    max-width: 800px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin: 20px;
    height: auto;
}

.vendor-form-container {
    display: flex;
    flex-direction: column;
    padding: 40px;
    position: relative;
}

.italian-flag {
    height: 6px;
    width: 60px;
    display: flex;
    margin-bottom: 20px;
}

.flag-green {
    background-color: #009246;
    flex: 1;
}

.flag-white {
    background-color: #f7f7f7;
    flex: 1;
}

.flag-red {
    background-color: #ce2b37;
    flex: 1;
}

.vendor-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.step-card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.step-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s;
}

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

.textarea {
    resize: none;
}

.verification-section {
    margin-top: 20px;
}

.verification-code-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.verification-input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.verification-input:focus {
    border-color: #009246;
    outline: none;
}

.verification-status {
    font-size: 0.9rem;
    margin-top: 5px;
    min-height: 20px;
}

.verification-status.success {
    color: #009246;
}

.verification-status.error {
    color: #ce2b37;
}

.rating-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}

.rating input {
    display: none;
}

.rating label {
    cursor: pointer;
    width: 30px;
    height: 30px;
    margin: 0 2px;
    background-color: #f7f7f7;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #666;
    transition: all 0.2s ease;
}

.rating label:hover,
.rating label:hover~label,
.rating input:checked~label {
    background-color: #009246;
    color: white;
}

.btn {
    display: inline-block;
    background-color: #009246;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    text-align: center;
    margin-top: auto;
    z-index: 10000000;
}

.btn:hover {
    background-color: #007a3a;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.secondary-btn {
    background-color: #666;
}

.secondary-btn:hover {
    background-color: #555;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.back-btn {
    flex: 1;
    background-color: #666;
}

.back-btn:hover {
    background-color: #555;
}

.next-btn {
    flex: 2;
}

.submit-btn {
    flex: 2;
    background-color: #ce2b37;
}

.submit-btn:hover {
    background-color: #b02530;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.back-link:hover {
    color: #009246;
}

.language-switcher {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.language-button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.language-button:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
}

.language-button.active {
    opacity: 1;
    box-shadow: 0 0 0 2px #009246;
}

.language-button img {
    display: block;
    border-radius: 2px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 8px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    transition: background-color 0.3s;
}

.step-dot.active {
    background-color: #009246;
}

.background-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    z-index: 0;
}

.circle-green {
    width: 350px;
    height: 350px;
    background-color: #009246;
    top: -150px;
    right: -100px;
}

.circle-red {
    width: 250px;
    height: 250px;
    background-color: #ce2b37;
    bottom: -100px;
    left: -100px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #009246;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.success-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #222;
    text-align: center;
}

.success-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}

.success-additional {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
    font-style: italic;
}

.redirect-message {
    font-size: 0.9rem;
    color: #888;
    margin-top: 30px;
    text-align: center;
}

#countdown {
    font-weight: bold;
    color: #009246;
    margin: 0 3px;
}

.validation-message {
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

.validation-message.success {
    color: #009246;
}

.validation-message.error {
    color: #ce2b37;
}

@media (max-width: 576px) {
    .vendor-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        height: 100%;
    }

    .vendor-form-container {
        padding: 20px 15px;
        height: 100%;
    }

    .vendor-logo {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .step-card {
        min-height: calc(100vh - 150px);
    }

    .step-title {
        font-size: 1.3rem;
    }

    .step-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-control {
        padding: 10px;
    }

    .btn {
        padding: 12px;
    }

    .background-circle {
        display: none;
    }

    .language-switcher {
        top: 10px;
        right: 10px;
    }

    .rating label {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }

    .verification-input {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .step-indicator {
        gap: 6px;
    }

    .step-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-height: 700px) {
    .vendor-form-container {
        padding: 15px;
    }

    .step-card {
        min-height: auto;
    }

    .vendor-logo {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .step-title {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .step-description {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .btn {
        padding: 10px;
    }

    .italian-flag {
        margin-bottom: 10px;
    }
}

.word-count {
    font-size: 0.8rem;
    margin-top: 5px;
    text-align: right;
    color: #ce2b37;
    min-height: 15px;
}

.word-count.valid {
    color: #009246;
}

@media (max-width: 576px) {
    .word-count {
        font-size: 0.75rem;
    }
}