﻿.form-style {
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

    .form-style::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        z-index: 1;
    }

    .form-style > * {
        position: relative;
        z-index: 2;
    }

    .form-style .title {
        text-align: center;
        color: #2c3e50;
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        background: linear-gradient(135deg, #667eea, #764ba2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .form-style hr {
        border: none;
        height: 3px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        margin: 2rem 0;
        border-radius: 2px;
    }


    .form-style .form-group {
        margin-bottom: 1.5rem;
        position: relative;
    }

        .form-style .form-group label {
            display: block;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
            letter-spacing: 0.5px;
            transition: color 0.3s ease;
        }


    .form-style input[type="text"],
    .form-style input[type="email"],
    .form-style input[type="password"],
    .form-style input[type="number"],
    .form-style textarea,
    .form-style select {
        width: 100%;
        height: 45px !important;
        padding: 1rem 1.25rem;
        border: 2px solid #e1e8ed;
        border-radius: 12px;
        font-size: 1.7rem;
        font-family: inherit;
        background: #ffffff;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
        outline: none;
    }

        .form-style input[type="text"]:focus,
        .form-style input[type="email"]:focus,
        .form-style input[type="password"]:focus,
        .form-style input[type="number"]:focus,
        .form-style textarea:focus,
        .form-style select:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
            transform: translateY(-1px);
        }

        .form-style input::placeholder,
        .form-style textarea::placeholder {
            color: #9ca3af;
            opacity: 1;
        }


    .form-style textarea {
        min-height: 120px;
        resize: vertical;
        line-height: 1.6;
    }


    .form-style select {
        cursor: pointer;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 12px center;
        background-repeat: no-repeat;
        background-size: 16px;
        padding-right: 3rem;
        appearance: none;
    }


    .form-style .d-flex {
        gap: 0.75rem;
    }

        .form-style .d-flex .me-2 {
            flex-shrink: 0;
        }

        .form-style .d-flex .flex-grow-1 {
            flex: 1;
        }


    .form-style .rn-btn,
    .form-style .btn {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        color: white;
        padding: 1rem 2rem;
        border-radius: 12px;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        display: inline-block;
        text-align: center;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        position: relative;
        overflow: hidden;
    }

        .form-style .rn-btn:hover,
        .form-style .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        }

        .form-style .rn-btn:active,
        .form-style .btn:active {
            transform: translateY(0);
        }


    .form-style .apply-btn {
        background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
        box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }


    .form-style .validator-popup,
    .form-style span[style*="color: red"],
    .form-style span[style*="color:red"] {
        color: #e53e3e !important;
        font-size: 0.85rem;
        margin-top: 0.25rem;
        font-weight: 500;
        animation: slideInDown 0.3s ease;
    }

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.form-style span[style*="color: red"] {
    font-weight: 700;
    font-size: 1rem;
}


.form-style .accordion {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-style .accordion-button {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    border-radius: 12px !important;
    box-shadow: none;
}

    .form-style .accordion-button:not(.collapsed) {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

.form-style .accordion-body {
    background: #ffffff;
    padding: 1.5rem 1.25rem;
}


.form-style .price-style {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    text-align: center;
    display: block;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}


.form-style #paymentPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.form-style .modal-content {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.form-style .payment-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: none;
}

.form-style .payment-alert {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    border-left: 4px solid #e53e3e;
}

.form-style .payment-phone {
    font-weight: 600;
    color: #2c3e50;
    margin-top: 0.5rem;
}


@media (max-width: 768px) {
    .form-style {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 16px;
    }

        .form-style .title {
            font-size: 2rem;
        }

        .form-style .col-lg-6 {
            margin-bottom: 1rem;
        }

        .form-style .d-flex {
            flex-direction: column;
            gap: 0.5rem;
        }

            .form-style .d-flex .me-2 {
                width: 100% !important;
            }
}

@media (max-width: 480px) {
    .form-style {
        margin: 0.5rem;
        padding: 1rem;
    }

        .form-style input,
        .form-style textarea,
        .form-style select {
            padding: 0.875rem 1rem;
            font-size: 0.95rem;
        }

        .form-style .rn-btn,
        .form-style .btn {
            padding: 0.875rem 1.5rem;
            font-size: 1rem;
        }
}


.form-style .form-group:focus-within label {
    color: #667eea;
}


.form-style .form-group.floating {
    position: relative;
    margin-top: 1rem;
}

    .form-style .form-group.floating label {
        position: absolute;
        top: 1rem;
        left: 1.25rem;
        background: white;
        padding: 0 0.5rem;
        transition: all 0.3s ease;
        pointer-events: none;
        color: #9ca3af;
    }

    .form-style .form-group.floating input:focus + label,
    .form-style .form-group.floating input:not(:placeholder-shown) + label {
        top: -0.5rem;
        left: 1rem;
        font-size: 0.85rem;
        color: #667eea;
        font-weight: 600;
    }
