:root {
    --primary-color: #45B5AA;
    --secondary-color: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    padding: 10px 0;
}

.logo img {
    max-width: 200px;
}

.progress-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.progress {
    position: absolute;
    height: 4px;
    background: var(--primary-color);
    width: 0%;
    top: 50%;
    transform: translateY(-50%);
    transition: width 0.3s ease;
}

.step {
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    z-index: 1;
}

.step.active {
    border-color: var(--primary-color);
}

.form-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding-bottom: 30px;
    min-height: auto;
}

/* Form styling */
.form-group {
    margin-bottom: 5px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.9;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .form-container {
        padding: 15px;
    }
} 

/* Add these to your existing CSS */
.form-title {
    font-size: 1.5em;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.step-content {
    margin-top: 20px;
}

.error {
    border-color: red !important;
}

.btn-back {
    background: #666;
    margin-right: 10px;
}

.help-link {
    color: var(--primary-color);
    text-decoration: none;
}

small {
    color: #666;
    font-size: 0.8em;
}

.product-image {
    text-align: center;
    margin-bottom: 20px;
}

.product-image img {
    max-width: 200px;
    height: auto;
}

.success-message {
    padding: 2rem;
    text-align: center;
}

.success-message h2 {
    color: #28a745;
    margin-bottom: 1.5rem;
}

.success-message p {
    margin-bottom: 1.5rem;
}

.success-message strong {
    color: #007bff;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border: 2px dashed #007bff;
    border-radius: 5px;
    display: inline-block;
    margin: 1rem 0;
}

.success-message .small {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
}

.coupon-code {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 0;
    padding: 10px;
    border: 2px dashed var(--primary-color);
    display: inline-block;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

[required] {
    position: relative;
}

label {
    font-weight: 500;
}

label > span.required {
    color: red;
}

.checkbox-group {
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.char-counter {
    color: #666;
    font-size: 0.8em;
    text-align: right;
    margin-top: 5px;
}

.site-name {
    font-size: 28px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-check-input {
    margin: 0;
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.form-check-label {
    font-weight: normal;
    margin: 0;
}

input[type="radio"] {
    width: auto;
}

input[type="text"][pattern] {
    font-family: monospace;
}

.p-2 {
    padding: 1rem;
}

.mt-3 {
    margin-top: 1rem;
}

.text-center {
    text-align: center;
}

.center {
    margin: auto;
    display: block;
}

.d-grid {
    display: grid;
}

.gap-2 {
    gap: 0.5rem;
}

.col-6 {
    width: 50%;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.back-link {
    color: #666;
    text-decoration: none;
}

.back-link:hover {
    color: #333;
}

.text-danger {
    color: #dc3545;
}

.char-counter {
    color: #666;
    font-size: 0.85rem;
    text-align: right;
    margin-top: 5px;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.min-chars {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
}

.char-counter {
    color: #666;
    font-size: 0.85rem;
    text-align: right;
    margin-top: 2px;
    margin-bottom: 0;
}

textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 120px;
    margin: 0 !important;
    display: block;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(69, 181, 170, 0.2);
}

.btn-warning {
    background-color: #FF9900 !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.btn-warning:hover {
    opacity: 0.9 !important;
    background-color: #ff8800 !important;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.char-count {
    display: block;
    text-align: right;
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
}

.rounded {
    border-radius: 4px;
}

.border {
    border: 1px solid #ddd;
}

.bg-white {
    background-color: white;
}

.form-navigation {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    width: 100% !important;
    margin-top: -25px !important;
}

/* When Amazon button is visible (5-star review), push buttons down */
.form-container:has(.amazon-button-wrapper) .form-navigation {
    margin-top: 330px !important;
}

/* Arrow button styling */
button.arrow-btn,
button.arrow-btn.hidden-submit,
button.arrow-btn.visible-submit {
    background: transparent !important;
    color: #666 !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 28px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

button.arrow-btn:hover,
button.arrow-btn.visible-submit:hover {
    color: #333 !important;
    background: transparent !important;
    outline: none !important;
}

button.arrow-btn:focus,
button.arrow-btn:active {
    outline: none !important;
    background: transparent !important;
}

/* Hidden submit button for very satisfied customers */
.btn.hidden-submit {
    background: transparent;
    color: #999;
    opacity: 1;
    pointer-events: auto;
}

.btn.hidden-submit:hover {
    color: #aaa;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Revert to normal style after Amazon click */
.btn.visible-submit {
    background: var(--primary-color);
    color: #fff;
    opacity: 1;
    cursor: pointer;
}

.btn.visible-submit:hover {
    opacity: 0.9;
    box-shadow: 0 6px 16px rgba(69, 181, 170, 0.3);
}

/* Mobile responsive for arrow button */
@media (max-width: 768px) {
    .submit-button-container {
        bottom: 20px;
        right: 20px;
    }
    
    .arrow-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Amazon button styling */
.amazon-button-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 !important;
    padding: 0 !important;
}

.amazon-review-btn {
    width: 100% !important;
    padding: 12px 20px !important;
    white-space: nowrap !important;
}
