#wad-turnstile-container {
    min-height: 65px; /* Ensures the form doesn't "jump" when the widget loads */
    margin: 15px 0;
}

.wad-notice-wrapper {
    text-align: center;
    margin-bottom: 25px;
}
.wad-notice-wrapper .wad-cp-notice {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    border-left: 5px solid transparent;
}
.wad-notice-wrapper .wad-cp-notice .icon {
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.wad-notice-wrapper .wad-cp-notice p {
    margin: 0;
}

.wad-notice-wrapper .wad-cp-notice.notice-error {
    background-color: #fff1f0;
    border-left-color: #f44336;
    color: #721c24;
}
.wad-notice-wrapper .wad-cp-notice.notice-info {
    background-color: #eef6ff;
    border-left-color: #2196F3;
    color: #0c5460;
}
.wad-portal-nav {
    display: flex;
    gap: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.wad-portal-nav a {
    padding: 10px 15px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s;
}

.wad-portal-nav a:hover {
    background: #f0f0f0;
}

/* The Active Tab Style */
.wad-portal-nav a.active {
    background: #fff;
    border-bottom: 3px solid #0073aa; /* Matches WP Blue */
    color: #0073aa;
}

/* Container for the form */
.acf-form .acf-fields {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

/* Base field wrapper - make all fields span 12 cols by default */
.acf-field {
    grid-column: span 12;
    padding: 0 !important; /* Remove ACF's default padding for better control */
}

.login-form {
    display: grid;
    margin: auto;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

/* Container for the form */
.wad-cp-auth-form,
.wad-cp-form-container {
    max-width: 600px;
    margin: 20px auto;
}

/* Style for each field group */
.wad-cp-form-group {
    width:100%;
    margin-bottom: 15px; /* Adds the gap between fields */
    display: inline-flex;
    flex-direction: column;
    gap:20px;
}

/* Ensure labels are separate from inputs */
.wad-cp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Full-width inputs for better readability */
.wad-cp-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Prevents padding from breaking width */
}

/* Button styling */
.wad-cp-form-group button {
    width: 100%;
    padding: 10px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Helper classes for your grid widths */
.grid-span-2 { grid-column: span 2; }
.grid-span-3 { grid-column: span 3; }  /* 25% */
.grid-span-4 { grid-column: span 4; }  /* 33% */
.grid-span-6 { grid-column: span 6; }  /* 50% */
.grid-span-12 { grid-column: span 12; } /* 100% */

.wp-list-table.contractor-detail {
    margin-bottom:30px;
}
    /*Toggle Switch on manage availability */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background-color: #28a745; /* Default Green (Available) */
    transition: .4s;
    border-radius: 34px;
    cursor: pointer;
}

.slider {
    position: absolute;
    height: 22px; width: 22px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* When the "Unavailable" class is added */
.switch.is-unavailable {
    background-color: #dc3545; /* Turn Red */
}

.switch.is-unavailable .slider {
    transform: translateX(30px); /* Slide to the right */
}

/* Available (Green) */
.fc .fc-bg-event.bg-available {
    /*background-color: #0073aa !important;*/
    opacity: 0.8;
}

/* Unavailable (Red) */
.fc .fc-bg-event.bg-unavailable {
    background-color: #dc3545 !important;
    opacity: 0.8;
}