/* Form notification styles for success and error messages */

.f__note {
    margin-top: 15px;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.f__note--success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 12px 16px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.f__note--error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px 16px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Submit button disabled state */
.f__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   Hero Section Background & Layout
   ======================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 34, 38, 0.7) 0%, rgba(26, 58, 64, 0.65) 100%),
                url('../images/lady-justice.avif') 15% center / 48% auto no-repeat;
    background-attachment: scroll;
}

.hero__inner {
    align-items: flex-start;
}

.hero__copy {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

@media (max-width: 991px) {
    .hero__copy {
        position: static;
    }
    
    .hero {
        background: linear-gradient(135deg, rgba(15, 34, 38, 0.75) 0%, rgba(26, 58, 64, 0.7) 100%),
                    url('../images/lady-justice.avif') center 20% / 60% auto no-repeat;
    }
}

/* Footer email styling */
.foot__email {
    margin-top: 1rem;
}

.foot__email a {
    color: #c9a227;
    text-decoration: none;
    transition: opacity 0.2s;
}

.foot__email a:hover {
    opacity: 0.8;
}

/* ========================================
   Hero Form Styles
   ======================================== */
.hero__form-wrapper {
    flex: 1;
    max-width: 480px;
    width: 100%;
}

.hero__form-card {
    background: linear-gradient(135deg, #0f2226 0%, #1a3a40 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.hero-f__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c9a227;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero-f .f__label {
    color: rgba(255, 255, 255, 0.9);
}

.hero-f .f__control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero-f .f__control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero-f .f__control:focus {
    border-color: #c9a227;
    background: rgba(255, 255, 255, 0.15);
}

.hero-f select.f__control {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.hero-f select.f__control option {
    background: #0f2226;
    color: #fff;
}

.hero-f .f__check span {
    color: rgba(255, 255, 255, 0.9);
}

.hero-f .f__check a {
    color: #c9a227;
}

.hero-f .f__grid {
    gap: 0.75rem;
}

.hero-f .f__group {
    margin-bottom: 0.5rem;
}

.hero-f .f__control {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.hero-f .f__check {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.hero-f .f__check span {
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .hero__form-wrapper {
        max-width: 100%;
        margin-top: 2rem;
    }
    
    .hero__form-card {
        padding: 1.5rem;
    }
}

/* ========================================
   Chat Widget Styles
   ======================================== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: inherit;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a227 0%, #e6c547 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(201, 162, 39, 0.5);
}

.chat-toggle svg {
    width: 28px;
    height: 28px;
    color: #0f2226;
}

.chat-icon {
    display: block;
}

.chat-close-icon {
    display: none;
}

.chat-widget.open .chat-icon {
    display: none;
}

.chat-widget.open .chat-close-icon {
    display: block;
}

.chat-box {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 48px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    max-height: 520px;
}

.chat-widget.open .chat-box {
    display: flex;
    animation: chatSlideIn 0.3s ease;
}

@keyframes chatSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, #0f2226 0%, #1a3a40 100%);
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar svg {
    width: 24px;
    height: 24px;
    color: #c9a227;
}

.chat-title {
    font-weight: 600;
    font-size: 1rem;
}

.chat-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

.chat-minimize {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.chat-minimize:hover {
    opacity: 1;
}

.chat-minimize svg {
    width: 20px;
    height: 20px;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 280px;
    max-height: 320px;
    background: #f8f9fa;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.bot .chat-bubble {
    background: #fff;
    color: #0f2226;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-message.user .chat-bubble {
    background: linear-gradient(135deg, #c9a227 0%, #e6c547 100%);
    color: #0f2226;
    border-bottom-right-radius: 4px;
}

.chat-bubble a {
    color: #0a66ff;
    text-decoration: underline;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chat-option-btn {
    background: #fff;
    border: 1px solid #c9a227;
    color: #0f2226;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-option-btn:hover {
    background: #c9a227;
    color: #0f2226;
}

.chat-input-area {
    display: flex;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #e9ecef;
    gap: 8px;
}

.chat-input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: #c9a227;
}

.chat-input:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a227 0%, #e6c547 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chat-send:hover {
    transform: scale(1.05);
}

.chat-send svg {
    width: 18px;
    height: 18px;
    color: #0f2226;
}

@media (max-width: 480px) {
    .chat-widget {
        bottom: 16px;
        right: 16px;
    }
    
    .chat-box {
        width: calc(100vw - 32px);
        bottom: 70px;
        right: -8px;
    }
    
    .chat-toggle {
        width: 54px;
        height: 54px;
    }
}
