/* Contact Form Custom Styles */

/* Error input styling */
.error-input {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Toast Container */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    width: 350px;
    max-width: calc(100% - 40px);
}

/* Toast Base Styles */
.toast {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 16px 40px 16px 20px;
    /* Extra padding on right for close button */
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
    min-height: 60px;
}

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

.toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: currentColor;
}

/* Toast Icon */
.toast-icon {
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Toast Content */
.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-message {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    font-weight: 500;
}

/* Toast Close Button - Top Right Corner Inside Frame */
.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
    line-height: 1;
    font-weight: 300;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #333;
    transform: scale(1.1);
}

/* Toast Types */
.toast-success {
    border-left-color: #28a745;
}

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

.toast-success::before {
    background: linear-gradient(90deg, #28a745 0%, transparent 100%);
}

.toast-error {
    border-left-color: #dc3545;
}

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

.toast-error::before {
    background: linear-gradient(90deg, #dc3545 0%, transparent 100%);
}

.toast-info {
    border-left-color: #17a2b8;
}

.toast-info .toast-icon {
    color: #17a2b8;
}

.toast-info::before {
    background: linear-gradient(90deg, #17a2b8 0%, transparent 100%);
}

/* Loading spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Form input focus styling */
.inpts-lowr:focus {
    outline: none;
    border-color: #28251E !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 37, 30, 0.25) !important;
}

/* Button hover effects */
.button.btn-primary:hover {
    background-color: #1a1714 !important;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

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

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* Form section styling */
.result {
    margin-top: 20px;
    display: none;
    /* Hide the old result div */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 10px;
        width: calc(100% - 20px);
    }

    .toast {
        padding: 12px 16px;
    }

    .toast-icon {
        font-size: 20px;
        margin-right: 12px;
    }

    .toast-message {
        font-size: 13px;
    }

    .inpts-lowr {
        width: 100% !important;
    }

    .button {
        width: 100%;
        margin-bottom: 10px !important;
        margin-left: 0 !important;
    }
}

/* Mobile: Stack toasts */
@media (max-width: 480px) {
    #toast-container {
        top: auto;
        bottom: 20px;
    }

    .toast {
        transform: translateY(400px);
    }

    .toast.show {
        transform: translateY(0);
    }
}

/* Input placeholder styling */
.inpts-lowr::placeholder {
    color: #999;
    opacity: 1;
}

.inpts-lowr::-webkit-input-placeholder {
    color: #999;
}

.inpts-lowr::-moz-placeholder {
    color: #999;
}

.inpts-lowr:-ms-input-placeholder {
    color: #999;
}

/* Smooth transitions */
.inpts-lowr,
.button {
    transition: all 0.3s ease;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .toast {
        background: #2d2d2d;
        color: #fff;
    }

    .toast-message {
        color: #fff;
    }

    .toast-close {
        color: #ccc;
    }

    .toast-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
}