/* Rebrandy Contact Form Styles */

.rebrandy_contact_form_wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

.rebrandy_contact_form_wrapper * {
    box-sizing: border-box;
}

.rebrandy_contact_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rebrandy_form_row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.rebrandy_form_group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rebrandy_form_group label {
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    margin-bottom: 0;
}

.rebrandy_form_group input[type="text"],
.rebrandy_form_group input[type="email"],
.rebrandy_form_group input[type="tel"],
.rebrandy_form_group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: inherit;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0;
    /* Keep it square/sharp as per modern design, or inherit from theme */
}

.rebrandy_form_group input:focus,
.rebrandy_form_group textarea:focus {
    border-color: #333;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.rebrandy_form_group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox styling */
.rebrandy_checkbox_row {
    align-items: center;
}

.rebrandy_checkbox_label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: inherit;
    position: relative;
}

.rebrandy_checkbox_label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0 0;
    cursor: pointer;
    accent-color: #333;
}

/* Submit Button */
.rebrandy_submit_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: #111;
    color: #fff;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    position: relative;
    border-radius: 0;
    min-width: 200px;
    transform: none;
}

.rebrandy_submit_button:hover {
    background-color: #333;
    border-color: transparent;
    transform: none;
}

.rebrandy_submit_button:disabled {
    cursor: not-allowed;
}

.rebrandy_btn_loader {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: rebrandy_spin 1s linear infinite;
    position: absolute;
    right: 20px;
}

@keyframes rebrandy_spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Response Messages */
.rebrandy_form_response {
    padding: 15px;
    font-size: 14px;
    margin-top: 10px;
    border-radius: 0;
}

.rebrandy_success {
    background-color: #e6f4ea;
    color: #1e4620;
    border: 1px solid #c8e6c9;
}

.rebrandy_error {
    background-color: #fce8e6;
    color: #c5221f;
    border: 1px solid #f9bdbb;
}

/* Responsive */
@media (max-width: 768px) {
    .rebrandy_form_row {
        flex-direction: column;
        gap: 20px;
    }
}

/* Footer Contact Form Specifics */
.rebrandy_footer_form_wrapper {
    max-width: 100%;
    /* Take full width of the container */
    margin: 0;
    /* Reset margin for footer integration */
}

.rebrandy_footer_form_title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: inherit;
}

.rebrandy_footer_form .rebrandy_submit_button {
    width: 100%;
    background-color: #fff;
    color: #111;
    border: 1px solid transparent;
}

.rebrandy_footer_form .rebrandy_submit_button:hover {
    background-color: #bfa888;
    border-color: #bfa888;
    color: #fff;
    transform: none;
}

.rebrandy_footer_form .rebrandy_submit_button .rebrandy_btn_loader {
    border-color: rgba(0, 0, 0, 0.2);
    border-top-color: #111;
}
