.product-image {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    height: auto;
    border-radius: 8px;
}

/* Add to your CSS file */
.pricing-options {
    margin: 30px 0;
}

.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.price-option {
    flex: 1;
    min-width: 200px;
}

.price-option input[type="radio"] {
    display: none;
}

.price-option label {
    display: block;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.price-option input[type="radio"]:checked+label {
    border-color: #6772e5;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    background-color: #f6f9fc;
}

.price-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 1.2em;
    color: #525f7f;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* Country dropdown styling */
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    appearance: none;
    /* Removes default styling */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state for dropdown */
.form-group select:focus {
    outline: none;
    border-color: #6772e5;
    box-shadow: 0 0 0 1px rgba(103, 114, 229, 0.5);
}

/* Add custom dropdown arrow */
.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' 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 10px center;
    background-size: 16px;
    padding-right: 30px;
    /* Make room for the dropdown arrow */
}

/* Hover state */
.form-group select:hover {
    border-color: #d0d0d0;
}

/* Disabled state */
.form-group select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.error-message {
    color: #e25950;
    margin-top: 5px;
    display: none;
}

/* Error messages container */
.form-errors {
    display: none;
    background-color: #fff8f8;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    color: #d32f2f;
    margin: 20px 0;
    padding: 12px 15px;
}

.form-errors.visible {
    display: block;
    animation: fadeIn 0.3s;
}

.form-errors ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.form-errors li {
    margin-bottom: 6px;
}

/* Update these button styles to maintain consistent dimensions */
.submit-button {
    background: #6772e5;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
    /* Increased from 120px to accommodate longer text */
    width: auto;
    height: 44px;
    /* Explicitly set height */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Required for absolute positioning of the spinner */
}

.submit-button:hover {
    background: #5469d4;
}

/* Improved spinner and disabled button styling */
.submit-button:disabled {
    background-color: #9fa3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

.submit-button.loading {
    color: transparent;
    /* Hide text without changing width */
}

/* Improved spinner styling */
.submit-button.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Language selector styling (matching pricing selector) */
.language-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.lang-option {
    flex: 1;
    min-width: 150px;
}

.lang-option input[type="radio"] {
    display: none;
}

.lang-option label {
    display: block;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.lang-option input[type="radio"]:checked+label {
    border-color: #6772e5;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    background-color: #f6f9fc;
}

.lang-name {
    font-weight: bold;
    font-size: 1.1em;
}

.terms-container {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.terms-container input[type="checkbox"] {
    margin-right: 10px;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

button:disabled:hover {
    background-color: #cccccc;
}

/* Add these styles to your existing CSS file */

.error-container {
    margin: 40px 0;
    text-align: center;
}

.error-box {
    padding: 30px;
    border-radius: 10px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.error-box h3 {
    color: #e25950;
    margin-bottom: 15px;
}

.error-box p {
    margin-bottom: 25px;
    color: #525f7f;
}

.button-link {
    display: inline-block;
    background: #6772e5;
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.button-link:hover {
    background: #5469d4;
    transform: translateY(-1px);
}

/* Add these styles for the products listing page */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(50, 50, 93, 0.1), 0 6px 6px rgba(0, 0, 0, 0.08);
}

.product-thumbnail {
    height: 160px;
    object-fit: contain;
    margin-bottom: 15px;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #6b7c93;
    font-style: italic;
}

.error-text {
    color: #e25950;
    text-align: center;
}

/* Add to your cyberbasics.css file */

/* CNPJ input styling */
#cnpj {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#cnpj:focus {
    outline: none;
    border-color: #6772e5;
    box-shadow: 0 0 0 1px rgba(103, 114, 229, 0.5);
}

/* Add a slide-down animation for better UX */
#cnpj-container {
    overflow: hidden;
    transition: all 0.3s ease-out;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

/* Style for the CNPJ container needs additional fixes */
#cnpj-container {
    display: none;
    /* Hide by default */
}

#cnpj-container.visible {
    display: block;
    /* Show when visible class is added */
    max-height: none;
    /* Remove fixed height constraint */
    opacity: 1;
    margin-top: 20px;
    margin-bottom: 20px;
}

#cnpj-container.visible {
    max-height: 80px;
    opacity: 1;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Discount label styling */
.discount {
    display: inline-block;
    background-color: #e6f7e8;
    color: #2e8540;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    margin-left: 8px;
    border: 1px solid #d0e9d6;
    white-space: nowrap;
}

/* Add a small checkmark before the discount */
.discount::before {
    content: "✓";
    margin-right: 4px;
}

/* Add hover effect */
.price-option:hover .discount {
    background-color: #d0e9d6;
}

/* Emphasize discount when price option is selected */
.price-option input[type="radio"]:checked+label .discount {
    background-color: #2e8540;
    color: white;
    border-color: #2e8540;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Changed back to auto to allow scrolling */
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s;
    /* Centering properties - align flex start to position from top */
    align-items: flex-start;
    /* Changed from center to flex-start */
    justify-content: center;
    padding-top: 50px;
    /* Add padding at the top to push content down */
}

/* When modal is visible */
.modal.visible {
    display: flex !important;
}

.modal-content {
    background-color: #fefefe;
    margin: 20px auto;
    /* Add margin to top and bottom */
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 80%;
    max-width: 700px;
    height: auto;
    /* Changed from fixed height */
    max-height: 80vh;
    /* Reduced from 90vh to ensure it doesn't overflow */
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.4s;
    display: flex;
    flex-direction: column;
}

/* Adjust the terms text container to fill available space */
.terms-text {
    margin: 20px 0;
    line-height: 1.6;
    color: #333;
    flex: 1;
    /* Allow it to expand to fill space */
    overflow-y: auto;
    /* Allow scrolling */
    padding: 15px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
}

/* Update the close button to ensure it's properly positioned */
.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
}

/* Make sure the accept button stays at the bottom */
#accept-terms {
    margin-top: 20px;
    align-self: flex-end;
}

/* Update the animation to ensure modal enters from center */
@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.terms-text h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

#terms-link {
    color: #6772e5;
    text-decoration: underline;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* Company size selection styling - updated to match language selector */
.company-size-container {
    margin: 20px 0 30px 0;
}

.company-size-container h3 {
    margin-top: 0;
    color: #32325d;
    font-size: 18px;
    margin-bottom: 8px;
}

.company-size-container p {
    color: #6b7c93;
    margin-bottom: 15px;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.size-option {
    flex: 1;
    min-width: 150px;
}

.size-option input[type="radio"] {
    display: none;
}

.size-option label {
    display: block;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.size-option input[type="radio"]:checked+label {
    border-color: #6772e5;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    background-color: #f6f9fc;
}

.size-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #32325d;
}

.size-description {
    color: #6b7c93;
    margin-top: 5px;
    font-size: 0.9em;
}

.continue-button-container {
    margin-top: 20px;
    text-align: center;
}

@media (min-width: 768px) {
    .size-options {
        flex-direction: row;
    }

    .size-option {
        flex: 1;
    }
}

/* Selected size information styling with change button - fixed alignment */
.selected-size-info {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f6f9fc;
    border-radius: 4px;
    color: #6772e5;
    font-size: 14px;
    display: flex;
    align-items: center;
    /* This ensures vertical centering */
    justify-content: space-between;
    line-height: 1.4;
    /* Add this to control line height */
}

.selected-size-info strong {
    font-weight: 600;
}

.text-button {
    background: none;
    border: none;
    color: #6772e5;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 0 5px;
    font-weight: 500;
    /* Remove any margin that might affect alignment */
    margin: 0;
    /* Set the line height to match the text */
    line-height: inherit;
    /* Align with the baseline of the text */
    align-self: center;
}

.text-button:hover {
    color: #5469d4;
}

/* Partner branding styles */
.partner-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background-color: #fafafa;
    text-align: center;
}

.partner-logo-container {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Smaller container for logo */
    min-width: 180px;
    min-height: 80px;
}

.partner-logo {
    /* Slightly smaller logo */
    max-height: 80px;
    max-width: 180px;
    min-width: 60px;
    min-height: 30px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-info {
    font-size: 12px;
    color: #666;
}

.partner-info p {
    margin: 0;
}