/* Form Validation Styles */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

input.error,
textarea.error {
    border-color: #dc3545 !important;
    background-color: #fff8f8;
}

.required-star {
    color: red;
    margin-left: 2px;
}

/* Form Layout - Half Columns for Side by Side Fields */
.input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.input-half-col {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
}

.input-full-col {
    flex: 1 1 100%;
}

.input-half-col label,
.input-full-col label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-half-col input,
.input-full-col input,
.input-full-col textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

.input-full-col textarea {
    min-height: 100px;
    resize: vertical;
}

/* reCAPTCHA Responsive Styling */
.g-recaptcha {
    margin-top: 5px;
    transform: scale(0.85);
    transform-origin: 0 0;
    -webkit-transform: scale(0.85);
    -webkit-transform-origin: 0 0;
}

@media (min-width: 480px) {
    .g-recaptcha {
        transform: scale(1);
        -webkit-transform: scale(1);
    }
}

/* Toaster Notification Styles */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 450px;
}

.toast {
    min-width: 350px;
    margin-bottom: 10px;
    padding: 16px 20px;
    border-radius: 8px;
    border: 2px solid;
    background-color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.toast.error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.toast.success .toast-icon {
    background-color: #28a745;
    color: #fff;
}

.toast.error .toast-icon {
    background-color: #dc3545;
    color: #fff;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
}

.toast-message {
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: currentColor;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}

.toast-close:hover {
    opacity: 0.8;
}