/**
 * Universal Order Form Styles for Onlife.bg
 * Compatible with theme-yellow-bg and theme-pink-bg
 * Mobile-first responsive design
 */

/* Order Form Section */
.order-form-section {
    padding: 60px 0;
    position: relative;
}

.order-form-section h2 {
    text-align: center;
    margin-bottom: 15px;
}

.order-form-section .form-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Container */
#order-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.order-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Theme adjustments */
.theme-yellow-bg .order-form {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-card);
}

.theme-pink-bg .order-form {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-card);
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.theme-yellow-bg .form-group label {
    color: var(--primary);
}

.theme-pink-bg .form-group label {
    color: var(--secondary);
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(73, 65, 109, 0.1);
}

.form-input::placeholder {
    color: #999;
    font-style: normal;
}

/* Error States */
.form-input.error {
    border-color: var(--accent-red);
    background: #fff5f5;
}

.error-message {
    display: block;
    color: var(--accent-red);
    font-size: 0.875rem;
    margin-top: 6px;
    font-weight: 500;
}

.theme-pink-bg .error-message {
    color: #ffadad;
    background: rgba(214, 64, 69, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    margin-top: 8px;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.checkbox-group:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.theme-pink-bg .checkbox-group {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-pink-bg .checkbox-group:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.theme-pink-bg .checkbox-group label {
    color: var(--white);
    font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    flex-grow: 1;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

/* Price Display */
.price-display {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    margin: 30px 0;
    border: 1px solid rgba(255,255,255,0.5);
}

.theme-pink-bg .price-display {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-pink-bg .price-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.theme-pink-bg .price-amount {
    color: var(--secondary);
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.price-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.theme-yellow-bg .price-amount {
    color: var(--primary);
}

/* Original Price (strikethrough) */
.original-price {
    font-size: 1.2rem;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
    text-decoration: line-through;
    opacity: 0.6;
    margin-bottom: 5px;
}

.theme-yellow-bg .original-price {
    color: var(--primary-light);
}

.theme-pink-bg .original-price {
    color: rgba(255, 255, 255, 0.7);
}

/* Discounted Price (with EUR) */
.discounted-price {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.theme-yellow-bg .discounted-price {
    color: var(--primary);
}

.theme-pink-bg .discounted-price {
    color: var(--secondary);
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-card);
}

.theme-yellow-bg .submit-button {
    background: var(--gradient-primary);
    color: var(--white);
}

.theme-yellow-bg .submit-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.theme-pink-bg .submit-button {
    background: var(--gradient-gold);
    color: var(--primary);
}

.theme-pink-bg .submit-button:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-button:after {
    content: " ❤";
    font-family: 'Inter', sans-serif;
}

/* Form Error (General) */
#form-error {
    background: var(--accent-red);
    color: white;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: none;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

/* Thank You Page */
#thank-you-container {
    display: none;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.thank-you-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 50px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.theme-yellow-bg .thank-you-content {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(159, 93, 213, 0.2);
}

.theme-pink-bg .thank-you-content {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(252, 230, 143, 0.3);
}

.thank-you-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-title {
    font-size: 2rem;
    margin-bottom: 20px;
    font-family: 'Georgia', "Times New Roman", serif;
}

.order-summary {
    text-align: left;
    background: rgba(0, 0, 0, 0.05);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.order-summary h3 {
    margin-bottom: 15px;
    text-decoration: none;
}

.order-detail {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.order-detail strong {
    display: inline-block;
    min-width: 140px;
}

.order-products-list {
    list-style: none;
    padding-left: 0;
}

.order-products-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.order-products-list li:last-child {
    border-bottom: none;
}

.instagram-cta {
    margin: 30px 0;
}

.instagram-link {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.theme-yellow-bg .instagram-link {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.theme-pink-bg .instagram-link {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.instagram-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.new-order-button {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    border: 2px solid;
    background: transparent;
    transition: all 0.3s ease;
    font-family: 'Open Sans', Arial, sans-serif;
}

.theme-yellow-bg .new-order-button {
    color: #49416D;
    border-color: #49416D;
}

.theme-yellow-bg .new-order-button:hover {
    background: #49416D;
    color: #FCE68F;
}

.theme-pink-bg .new-order-button {
    color: #FCE68F;
    border-color: #FCE68F;
}

.theme-pink-bg .new-order-button:hover {
    background: #FCE68F;
    color: #49416D;
}

/* Responsive Design */
@media (max-width: 767px) {
    .order-form-section {
        padding: 40px 0;
    }

    .order-form {
        padding: 30px 20px;
    }

    .thank-you-content {
        padding: 35px 25px;
    }

    .thank-you-icon {
        font-size: 3.5rem;
    }

    .thank-you-title {
        font-size: 1.6rem;
    }

    .price-amount {
        font-size: 1.5rem;
    }

    .original-price {
        font-size: 1.1rem;
    }

    .discounted-price {
        font-size: 1.5rem;
    }

    .submit-button {
        font-size: 1.15rem;
        padding: 16px 25px;
    }

    .order-detail strong {
        display: block;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .form-input {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .checkbox-group {
        padding: 12px;
    }

    .checkbox-group label {
        font-size: 0.95rem;
    }

    .instagram-link {
        padding: 12px 25px;
        font-size: 1.05rem;
    }
}
