/* ========================================
   Brochure Float Button & Modal Styles
   ======================================== */

/* Floating Brochure Button */
.brochure-float-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #12542a 0%, #184629 100%);
    color: white;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: -2px 0 12px rgba(22, 163, 74, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 11px;
    width: 50px;
    letter-spacing: 0.5px;
}

.brochure-float-btn:hover {
    transform: translateY(-50%) translateX(-5px);
    box-shadow: -4px 0 16px rgba(22, 163, 74, 0.5);
}

.brochure-float-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.brochure-icon {
    width: 20px;
    height: 20px;
}

.brochure-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 10px;
    text-transform: uppercase;
}

/* Mobile - Keep same design */
@media (max-width: 768px) {
    .brochure-float-btn {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        width: 45px;
        padding: 16px 8px;
        gap: 8px;
    }

    .brochure-float-btn:hover {
        transform: translateY(-50%) translateX(-5px);
    }

    .brochure-float-btn:active {
        transform: translateY(-50%) scale(0.95);
    }

    .brochure-icon {
        display: none;
    }

    .brochure-text {
        font-size: 9px;
        letter-spacing: 0.3px;
    }
}

/* Modal Overlay */
.brochure-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brochure-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal Content */
.brochure-modal-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.brochure-modal.active .brochure-modal-content {
    transform: scale(1);
}

/* Close Button */
.brochure-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
}

.brochure-modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: rotate(90deg);
}

/* Modal Header */
.brochure-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.brochure-modal-icon {
    width: 48px;
    height: 48px;
    color: #16a34a;
    margin: 0 auto 16px;
}

.brochure-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.brochure-modal-header p {
    font-size: 14px;
    color: #6b7280;
}

/* Form Styles */
.brochure-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-group .required {
    color: #ef4444;
}

.form-control {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Input Group for Phone */
.input-group {
    display: flex;
    width: 100%;
}

.input-group-text {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}

.input-group .form-control {
    border-radius: 0 12px 12px 0;
    flex: 1;
}

.input-group .form-control.border-start-0 {
    border-left: none;
}

.input-group-text.border-end-0 {
    border-right: none;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #1d5531 0%, #204a2f 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Form Messages */
.form-message {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 8px;
}

.form-message:not(:empty) {
    display: flex;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .brochure-modal-content {
        padding: 30px 20px;
        border-radius: 20px;
        max-height: 95vh;
    }

    .brochure-modal-header h2 {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 100px 1fr;
        gap: 10px;
    }

    .form-control {
        padding: 10px 14px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Smooth Scrollbar for Modal */
.brochure-modal-content::-webkit-scrollbar {
    width: 6px;
}

.brochure-modal-content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.brochure-modal-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.brochure-modal-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}