:root {
    --tt-common-white: #ffffff;
    --tt-button-theme-2: #ff6f0f;
    --tt-heading-primary: #001d23;
}

.white-bg {
    background: var(--tt-common-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--tt-ff-fira-sans);
    color: var(--tt-heading-primary);
    margin-top: 0px;
    font-weight: var(--tt-fw-sbold);
    text-transform: normal;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--bs-heading-color);
}

.domain-for-sale-form {
    position: relative;
    padding: 50px 40px;
}

.form-special-design-1:before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 200px 200px 0;
    border-color: transparent #ff6f0f transparent transparent;
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: -1;
}

/* Enhanced Form Field Error Styles */
.form-field {
    position: relative;
    margin-bottom: 25px;
}

.field-error {
    color: #d63384 !important;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 8px;
    display: none;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%) !important;
    border: 1px solid #f5c6cb !important;
    border-left: 4px solid #e53e3e !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
    position: relative;
    animation: slideDown 0.3s ease-out;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}

.field-error.show {
    display: block !important;
}

/* Ensure error styling is applied to all error elements */
[id$="-error"] {
    color: #d63384 !important;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%) !important;
    border: 1px solid #f5c6cb !important;
    border-left: 4px solid #e53e3e !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
    position: relative;
    animation: slideDown 0.3s ease-out;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}

[id$="-error"]::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 1rem;
}

.field-error::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 1rem;
}

.form-field input.error {
    border: 2px solid #e53e3e !important;
    box-shadow: 0 0 0 0.2rem rgba(229, 62, 62, 0.15), 0 4px 12px rgba(229, 62, 62, 0.1) !important;
    background-color: #fff5f5 !important;
    transition: all 0.3s ease;
}

/* Ensure error styling is applied to all input elements with error class */
input.error {
    border: 2px solid #e53e3e !important;
    box-shadow: 0 0 0 0.2rem rgba(229, 62, 62, 0.15), 0 4px 12px rgba(229, 62, 62, 0.1) !important;
    background-color: #fff5f5 !important;
    transition: all 0.3s ease;
}

.form-field input.error:focus {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 0.2rem rgba(229, 62, 62, 0.25), 0 4px 12px rgba(229, 62, 62, 0.15);
    background-color: #fff5f5;
}

.form-field input.error::placeholder {
    color: #c53030;
    opacity: 0.8;
}

/* Success state styling */
.form-field input.success {
    border: 2px solid #38a169 !important;
    box-shadow: 0 0 0 0.2rem rgba(56, 161, 105, 0.15), 0 4px 12px rgba(56, 161, 105, 0.1);
    background-color: #f0fff4;
}

/* Animation for error appearance */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced alert styling */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    line-height: 1.5;
}

.alert-danger {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    color: #c53030;
    border-left: 4px solid #e53e3e;
}

.alert-success {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    color: #2f855a;
    border-left: 4px solid #38a169;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d69e2e;
    border-left: 4px solid #f6ad55;
}

/* Form input focus states */
.form-field input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 0.2rem rgba(49, 130, 206, 0.15), 0 4px 12px rgba(49, 130, 206, 0.1);
    background-color: #f7fafc;
    transition: all 0.3s ease;
}

/* Loading state for submit button */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Enhanced form styling */
.domain-for-sale-form input {
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 1rem;
    background-color: #ffffff;
}

.domain-for-sale-form input:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.domain-for-sale-form input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 0.2rem rgba(49, 130, 206, 0.15), 0 4px 12px rgba(49, 130, 206, 0.1);
    background-color: #f7fafc;
}

/* Focus state for form fields */
.form-field.focused {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.form-field.focused input {
    box-shadow: 0 4px 20px rgba(49, 130, 206, 0.15);
}

/* Success indicator */
.form-field input.success::after {
    content: "✓";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #38a169;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Enhanced button styling */
.theme-btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.theme-btn {
    padding: 0.5rem 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: #fff;
    background-color: #00a982;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.theme-btn:active {
    transform: translateY(0);
}

/* Loading spinner enhancement */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

/* Form container enhancements */
.domain-for-sale-form {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

/* Additional error styling to catch any missed elements */
.domain-for-sale-form .error-message,
.domain-for-sale-form .validation-error,
.domain-for-sale-form .field-validation-error {
    color: #d63384 !important;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%) !important;
    border: 1px solid #f5c6cb !important;
    border-left: 4px solid #e53e3e !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
    position: relative;
    animation: slideDown 0.3s ease-out;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}

.domain-for-sale-form .error-message::before,
.domain-for-sale-form .validation-error::before,
.domain-for-sale-form .field-validation-error::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 1rem;
}

.domain-for-sale-form p {
    margin-bottom: 35px;
}

.form-special-design-1:after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 200px 200px 0;
    border-color: transparent #ffd6ba transparent transparent;
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: -2;
}

.domain-for-sale-form input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 15px 25px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #00c89a;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #ffffff;
}
.domain-for-sale-form input:focus-visible {
    border: 1px solid #00c89a;
    outline: none;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .field-error,
    [id$="-error"],
    .domain-for-sale-form .error-message,
    .domain-for-sale-form .validation-error,
    .domain-for-sale-form .field-validation-error {
        font-size: 0.8rem;
        padding: 10px 12px;
    }
    
    .domain-for-sale-form input {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .alert {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    h1.heading-font-family.text-24 {
        font-size: 6rem !important;
    }
}