/* Wrapper */
.cf7-rzp-wrapper {
    width: 100%;
    max-width: 760px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Global box sizing */
.cf7-rzp-wrapper *,
.cf7-rzp-wrapper *::before,
.cf7-rzp-wrapper *::after {
    box-sizing: border-box;
}

/* Steps */
.cf7-rzp-step {
    display: none;
    width: 100%;
}

.cf7-rzp-step.active {
    display: block;
}

/* Inputs */
.cf7-rzp-wrapper input,
.cf7-rzp-wrapper textarea,
.cf7-rzp-wrapper select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Textarea */
.cf7-rzp-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

/* Focus */
.cf7-rzp-wrapper input:focus,
.cf7-rzp-wrapper textarea:focus,
.cf7-rzp-wrapper select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Total Box */
.cf7-rzp-total {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #f6f7f7;
    font-weight: 600;
    font-size: 16px;
}

#cf7-rzp-total {
    font-size: 24px;
    font-weight: 700;
}

/* Review Box */
#cf7-rzp-review-box {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
    margin-bottom: 20px;
}

#cf7-rzp-review-box h3 {
    margin-top: 0;
    font-weight: 700;
}

#cf7-rzp-review-box p {
    margin: 0;
    font-size: 16px;
    margin-bottom: 5px;
}

/* Messages */
#cf7-rzp-message {
    margin-top: 15px;
    padding: 14px;
    border-radius: 8px;
    display: none;
}

#cf7-rzp-message.error {
    display: block;
    background: #ffeaea;
    color: #c62828;
    border: 1px solid #f5bcbc;
}

#cf7-rzp-message.success {
    display: block;
    background: #e8f8ec;
    color: #2e7d32;
    border: 1px solid #b7e0c0;
}

/* Validation */
.cf7-rzp-error {
    display: block;
    margin-top: -10px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #d63638;
    font-weight: 500;
}

/* Buttons */
.cf7-rzp-wrapper button,
.cf7-rzp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    background: #2271b1;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

/* Hover */
.cf7-rzp-wrapper button:hover,
.cf7-rzp-btn:hover {
    background: #135e96;
    transform: translateY(-1px);
}

/* Active */
.cf7-rzp-wrapper button:active,
.cf7-rzp-btn:active {
    transform: translateY(0);
}

/* Previous button */
.cf7-rzp-wrapper .prev-step {
    background: #f1f1f1;
    color: #333333;
    border: 1px solid #dcdcdc;
}

.cf7-rzp-wrapper .prev-step:hover {
    background: #e5e5e5;
}

/* Final payment button */
#cf7-rzp-pay-btn {
    background: #28a745;
    min-width: 220px;
}

#cf7-rzp-pay-btn:hover {
    background: #218838;
}

/* Button spacing */
.cf7-rzp-step button+button {
    margin-left: 12px;
}

.cf7-rzp-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px 0 30px;
    width: 100%;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #d1d5db;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.step-label {
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

.progress-line {
    width: 100px;
    height: 4px;
    background: #d1d5db;
    margin: 0 10px;
    border-radius: 10px;
    transition: 0.3s ease;
}

/* Active / completed */
.progress-step.active .step-circle,
.progress-step.completed .step-circle {
    background: #16a34a;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: #16a34a;
}

.progress-line.active {
    background: #16a34a;
}

@media (max-width: 767px) {
    .progress-line {
        width: 40px;
    }

    .step-circle {
        width: 35px;
        height: 35px;
    }

    .step-label {
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .cf7-rzp-wrapper {
        padding: 20px;
        margin: 20px auto;
    }

    .cf7-rzp-wrapper input,
    .cf7-rzp-wrapper textarea,
    .cf7-rzp-wrapper select {
        font-size: 14px;
    }

    .cf7-rzp-wrapper button,
    .cf7-rzp-btn {
        width: 100%;
        min-width: auto;
        margin: 8px 0;
    }

    .cf7-rzp-step button+button {
        margin-left: 0;
    }

    #cf7-rzp-total {
        font-size: 20px;
    }
}