/* WattleCorp Form Theme - Based on the WattleCorp website */

/* Alert Messages */
.wcf-alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    transition: opacity 0.5s ease-in-out;
}

.wcf-alert p {
    margin: 0;
    padding: 0;
}

.wcf-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.wcf-alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.wcf-alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.wcf-alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

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

.wcf-alert {
    animation: fadeIn 0.3s ease-out;
}

/* Modal Alert Positioning */
.wcf-form-container {
    position: relative;
}

.wcf-alert {
    margin: 0 0 20px 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wcf-alert {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }
}

/* Navigation Confirmation Modal */
.wcf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.wcf-modal.wcf-modal-visible {
    display: flex;
}

.wcf-modal-content {
    background: #1e1e1e;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid #333;
}

.wcf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.wcf-modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.5em;
}

.wcf-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.wcf-modal-close:hover,
.wcf-modal-close:focus {
    color: #e62c2c;
    text-decoration: none;
}

.wcf-modal-body {
    margin-bottom: 25px;
    color: #ddd;
    line-height: 1.5;
}

.wcf-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.wcf-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wcf-btn-primary {
    background-color: #e62c2c;
    color: white;
}

.wcf-btn-primary:hover {
    background-color: #c41f1f;
}

.wcf-btn-secondary {
    background-color: #333;
    color: #fff;
}

.wcf-btn-secondary:hover {
    background-color: #444;
}

/* Modal Animation */
@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.wcf-modal-visible .wcf-modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

/* Prevent body scroll when modal is open */
body.wcf-modal-open {
    overflow: hidden;
}

/* Service Section Visibility Control */
.service-type-section,
.consultancy-subsection {
    display: none !important;
}

.service-type-section.active,
.consultancy-subsection.active {
    display: block !important;
}

/* Service Details Styling */
.service-subsection h2 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e62c2c;
}

.service-subsection h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 10px;
}

.service-details-nav {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    border-bottom: 2px solid #2b2b2b;
    background: #1a1a1a;
}

.service-details-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    color: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid #2b2b2b;
    position: relative;
    text-align: center;
}

.service-details-nav .nav-item:last-child {
    border-right: none;
}

.service-details-nav .nav-item span {
    font-size: 14px;
    line-height: 1.4;
}

.service-details-nav .nav-item:hover {
    color: #e62c2c;
    background: rgba(230, 44, 44, 0.1);
}

.service-details-nav .nav-item.active {
    color: #e62c2c;
    background: rgba(230, 44, 44, 0.1);
}

.service-details-nav .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e62c2c;
}

/* Service Tabs Styling */
.wcf-service-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #2b2b2b;
    background: #1a1a1a;
}

.wcf-service-tab {
    flex: 1;
    padding: 15px 10px;
    cursor: pointer;
    background-color: #1a1a1a;
    border-right: 1px solid #2b2b2b;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #f5f5f5;
    text-align: center;
    position: relative;
}

.wcf-service-tab:last-child {
    border-right: none;
}

.wcf-service-tab:hover {
    color: #e62c2c;
    background: rgba(230, 44, 44, 0.1);
}

.wcf-service-tab.active {
    color: #e62c2c;
    background: rgba(230, 44, 44, 0.1);
    font-weight: bold;
}

.wcf-service-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e62c2c;
}

.wcf-service-tab-pane {
    display: none !important;
    padding: 20px 0;
}

.wcf-service-tab-pane.active {
    display: block !important;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.service-details-progress {
    height: 4px;
    background: #2b2b2b;
    margin: -2px 0 20px;
    position: relative;
}

.service-details-progress .progress-bar {
    height: 100%;
    background: #e62c2c;
    width: 0;
    transition: width 0.3s ease;
}

/* Global Page Styling */
body {
    background-color: #000000;
    color: #f5f5f5;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background particle effect for entire page */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: -1;
}

/* Page header styling */
.site-header, header, .entry-header, .page-header {
    background-color: #121212;
    border-bottom: 2px solid #e62c2c;
    padding: 1rem 0;
}

/* Page title styling */
.entry-title, .page-title {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin: 2rem 0;
    font-weight: 600;
}

/* Content area styling */
.site-content, .content-area, main, article {
    background-color: transparent;
}

/* Header Banner */
.wcf-header-banner {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 0;
    background-color: #121212;
    border-radius: 8px 8px 0 0;
}

.wcf-header-banner h1 {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    color: #ffffff;
}

.wcf-header-banner p {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    opacity: 0.8;
    color: #cccccc;
}

/* Separator */
.wcf-separator {
    height: 4px;
    background: linear-gradient(90deg, #e62c2c, #ff3c3c);
    margin: 0 0 1.5rem 0;
    box-shadow: 0 0 10px rgba(255, 60, 60, 0.5);
}

/* Main Container */
.wcf-form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #121212;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.15);
    color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

/* Background particle effect simulation for form container */
.wcf-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

/* Hint Text */
.hint-text {
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
    font-style: italic;
    display: block;
    line-height: 1.4;
}

/* Form help text */
.form-help {
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
    font-style: italic;
    display: block;
    line-height: 1.4;
}

/* Error Message */
.wcf-error-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    margin: 0;
    border-radius: 30px;
    background-color: rgba(255, 60, 60, 0.95);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        top: -50px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

/* Progress Bar - Now used as decorative separator */
.wcf-progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #e62c2c, #ff3c3c);
    border-radius: 1px;
    margin: 0 0 1.5rem 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 10px rgba(255, 60, 60, 0.5);
}

.wcf-progress {
    display: none; /* Hide the progress indicator since functionality is disabled */
}

/* Form Tabs */
.wcf-form-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.wcf-tab {
    flex: 1;
    text-align: center;
    padding: 1rem 0.5rem;
    background-color: #1a1a1a;
    color: #cccccc;
    cursor: pointer;
    border-bottom: 3px solid #333;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.wcf-tab:not(:last-child) {
    margin-right: 4px;
}

.wcf-tab.active {
    background-color: #222;
    color: #ffffff;
    border-bottom: 3px solid #e62c2c;
}

.wcf-tab:hover {
    background-color: #222;
}

.wcf-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #e62c2c;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.wcf-tab:hover::after {
    transform: scaleX(1);
}

/* Section Styling */
.wcf-section {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    opacity: 1 !important; /* Ensure form sections are always visible */
}

.wcf-section h3 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    border-bottom: 2px solid #e62c2c;
    padding-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wcf-section h4 {
    color: #e0e0e0;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Service Subsection Styling */
.service-subsection {
    background-color: rgba(26, 26, 26, 0.5);
    border-left: 3px solid #e62c2c;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.service-subsection h4 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}



/* Form Fields */
.wcf-field {
    margin-bottom: 1.5rem;
}

.wcf-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cccccc;
    font-weight: 500;
}

.wcf-field input[type="text"],
.wcf-field input[type="email"],
.wcf-field input[type="tel"],
.wcf-field input[type="number"],
.wcf-field input[type="date"],
.wcf-field select,
.wcf-field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #444;
    background-color: #1a1a1a;
    border-radius: 4px;
    font-size: 1rem;
    color: #f0f0f0;
    transition: all 0.3s ease;
}

.wcf-field input:focus,
.wcf-field select:focus,
.wcf-field textarea:focus {
    outline: none;
    border-color: #e62c2c;
    box-shadow: 0 0 0 2px rgba(230, 44, 44, 0.25);
    background-color: #222;
}

.wcf-field textarea {
    min-height: 100px;
    resize: vertical;
}

.wcf-field.has-error {
    position: relative;
}

.wcf-field.has-error input,
.wcf-field.has-error select,
.wcf-field.has-error textarea {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

/* .wcf-field.has-error input:focus,
.wcf-field.has-error select:focus,
.wcf-field.has-error textarea:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    background-color: rgba(220, 53, 69, 0.05);
} */

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    padding: 8px 12px;
    background-color: #f8d7da;
    border-radius: 4px;
    border: 1px solid #dc3545;
    position: absolute;
    z-index: 1;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Checkbox and Radio Styling */
.wcf-field .checkbox-group,
.wcf-field .radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* .checkbox-group.error {
    border: 2px solid #ff4444;
    background-color: rgba(255, 68, 68, 0.1);
} */

.error-message {
    color: #ff4444;
    font-size: 14px;
    margin-top: 5px;
    padding: 5px 10px;
    background-color: rgba(255, 68, 68, 0.1);
    border-radius: 4px;
}

/* Technical Details Section Validation Styles */
#tech-details .wcf-field input.error,
#tech-details .wcf-field select.error,
#tech-details .wcf-field textarea.error {
    border-color: #ff4444;
    /* background-color: #fff0f0; */
}

#tech-details .wcf-field .radio-group.error,
#tech-details .wcf-field .checkbox-group.error {
    border: 1px solid #ff4444;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    background-color: rgba(255, 68, 68, 0.05);
    animation: shake 0.5s ease-in-out;
}

#tech-details .wcf-field label.required:after {
    content: ' *';
    color: #ff4444;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

#tech-details .wcf-field input:focus,
#tech-details .wcf-field select:focus,
#tech-details .wcf-field textarea:focus {
    border-color: #e62c2c;
    
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
    outline: none;
}

.wcf-next-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wcf-field .checkbox-group label,
.wcf-field .radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
    color: #cccccc;
}

.wcf-field input[type="checkbox"],
.wcf-field input[type="radio"] {
    accent-color: #e62c2c;
}

/* Network Configuration Section Styling */
.server-counts {
    margin-bottom: 1.5rem;
}

.device-input-group {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 4px;
}

.device-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #f0f0f0;
}

.device-count,
.additional-devices {
    width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
}

/* Add spacing before cloud configuration */
.checkbox-group {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

/* Navigation Buttons */
.wcf-form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.wcf-prev-btn,
.wcf-next-btn,
.wcf-submit-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.wcf-prev-btn  {

    background-color: #333;
    color: #f0f0f0;
}
.consultancy-next-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    background-color: #e62c2c;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    float: inline-end;
    
}

.consultancy-next-btn:hover {
    background-color: #d32f2f;
}

.consultancy-prev-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    background-color: #333;
    color: #f0f0f0;
    float: inline-start;
    margin-right: auto;
}

.consultancy-prev-btn:hover {
    background-color: #444;
}

.wcf-next-btn,
.wcf-submit-btn {
    background-color: #e62c2c;
    color: white;
    position: relative;
    overflow: hidden;
}

.wcf-prev-btn:hover {
    background-color: #444;
}

.wcf-next-btn:hover,
.wcf-submit-btn:hover {
    background-color: #ff3c3c;
    box-shadow: 0 0 15px rgba(255, 60, 60, 0.5);
}

/* Button hover effect */
.wcf-next-btn::after,
.wcf-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.wcf-next-btn:hover::after,
.wcf-submit-btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Error Styling */
.error {
    border-color: #ff3c3c !important;
    box-shadow: 0 0 5px rgba(255, 60, 60, 0.5) !important;
}

.error-message {
    color: #ff3c3c;
    font-size: 12px;
    margin-top: 5px;
}

/* Form Help Text */
.form-help {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Phone Input Container */
.phone-input-container {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #1a1a1a;
    border-radius: 4px;
    border: 1px solid #444;
    overflow: hidden;
}

.phone-input-container select {
    width: 80px;
    height: 42px;
    padding: 0 8px;
    border: none;
    border-right: 1px solid #444;
    font-size: 14px;
    background-color: #1a1a1a;
    color: #f0f0f0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.phone-input-container input[type="tel"] {
    flex: 1;
    height: 42px;
    padding: 0 10px;
    border: none;
    font-size: 14px;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

/* Country Selection Styling */
.country-select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

.countries-select {
    background-color: #1a1a1a !important;
    color: #f0f0f0 !important;
    border: 1px solid #444 !important;
    border-radius: 4px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding: 8px !important;
}

.countries-select option {
    background-color: #1a1a1a !important;
    color: #f0f0f0 !important;
    padding: 8px !important;
}

.countries-select option:checked,
.countries-select option:hover,
.countries-select option:focus {
    background-color: #e62c2c !important;
    color: #ffffff !important;
}

/* Force dark styling for select elements */
select, select option {
    background-color: #1a1a1a !important;
    color: #f0f0f0 !important;
}

/* Selected options styling */
select option:checked {
    background-color: #333 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px 100px #e62c2c inset !important;
}

/* Fix for Firefox */
@-moz-document url-prefix() {
    .countries-select {
        color: #f0f0f0 !important;
        background-color: #1a1a1a !important;
    }
    
    .countries-select option {
        color: #f0f0f0 !important;
        background-color: #1a1a1a !important;
    }
}

/* Fix for Safari and Chrome */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .countries-select {
        color: #f0f0f0 !important;
        background-color: #1a1a1a !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcf-form-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .wcf-field input[type="text"],
    .wcf-field input[type="email"],
    .wcf-field input[type="tel"],
    .wcf-field input[type="number"],
    .wcf-field input[type="date"],
    .wcf-field select,
    .wcf-field textarea {
        padding: 0.5rem;
    }
    
    .wcf-form-navigation {
        flex-direction: column;
    }
    
    .wcf-prev-btn,
    .wcf-next-btn,
    .wcf-submit-btn {
        width: 100%;
    }
}
/* Toast Notification System */
.wcf-toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    animation: fadeInScale 0.3s ease-out;
}

.wcf-toast-content {
    display: flex;
    align-items: center;
}

.wcf-toast-icon {
    font-size: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wcf-toast-text {
    flex-grow: 1;
    font-size: 16px;
    line-height: 1.4;
}

.wcf-toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    /* background: transparent; */
    border: none;
    /* color: inherit; */
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.wcf-toast-close:hover {
    opacity: 1;
}

/* Success Toast */
.wcf-toast-success {
    background-color: #1e3a2d;
    border-left: 4px solid #4CAF50;
    color: #ffffff;
}

.wcf-toast-success .wcf-toast-icon {
    background-color: #4CAF50;
    color: #ffffff;
}

/* Error Toast */
.wcf-toast-error {
    background-color: #3a1e1e;
    border-left: 4px solid #F44336;
    color: #ffffff;
}

.wcf-toast-error .wcf-toast-icon {
    background-color: #F44336;
    color: #ffffff;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Error States */
.error {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.error-message {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
    display: block;
}

.error-shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Checkbox and Radio Group Errors */
.checkbox-group.error,
.radio-group.error,
.security-certs-group.error,
.security-policy-group.error,
.security-manager-group.error,
.primary-driver-group.error {
    border: 1px solid #dc3545;
    border-radius: 4px;
    padding: 10px;
    margin: 5px 0;
    background-color: rgba(220, 53, 69, 0.05);
    position: relative;
}

.checkbox-group.error::after,
.radio-group.error::after,
.security-certs-group.error::after,
.security-policy-group.error::after,
.security-manager-group.error::after,
.primary-driver-group.error::after {
    content: 'Please make a selection';
    display: block;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 5px;
}

/* Error message positioning for specific fields */
#error-message-container {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
}

#error-message-container .error-message {
    margin: 5px 0;
    padding-left: 10px;
    position: relative;
}

#error-message-container .error-message:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #dc3545;
}

/* Focus states for error fields */
input.error:focus,
select.error:focus,
textarea.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* ===== Select2 Customization ===== */

/* Selected item background - match theme color */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e62c2c !important; /* WattleCorp theme red */
    border: 1px solid #c41f1f !important;
    color: white !important;
    padding: 4px 28px 4px 10px !important; /* Extra padding on right for remove icon */
    border-radius: 4px !important;
    position: relative !important;
}

/* Remove icon (×) styling */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white !important;
    background-color: rgba(0, 0, 0, 0.2) !important; /* Slightly darker background */
    border: none !important;
    border-radius: 3px !important;
    padding: 2px 6px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    position: absolute !important;
    right: 4px !important; /* Position on the right */
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

/* Remove icon hover effect */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background-color: rgba(0, 0, 0, 0.4) !important;
    color: white !important;
}

/* Dropdown border color when focused */
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #e62c2c !important;
    box-shadow: 0 0 0 0.2rem rgba(230, 44, 44, 0.25) !important;
}

/* Dropdown options hover */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #e62c2c !important;
    color: white !important;
}

/* Selected option in dropdown */
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f8f9fa !important;
    color: #495057 !important;
}

/* Error state for select2 elements */
.select2-container--default.select2-container--focus .select2-selection--multiple.error,
.select2-container--default .select2-selection--multiple.error {
    border-color: #dc3545 !important;
}

/* Error state for number inputs */
input[type="number"].error {
    -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button.error,
input[type=number]::-webkit-outer-spin-button.error {
    -webkit-appearance: none;
    margin: 0;
}

/* Error styling for consultancy fields */
#consultancy-options .checkbox-group.error {
    border: 2px solid #e62c2c;
    border-radius: 8px;
    padding: 15px;
    background-color: rgba(230, 44, 44, 0.05);
    animation: shake 0.5s ease-in-out;
    margin-bottom: 15px;
}

.checkbox-group.error label {
    color: #ff6b6b;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
