/* Utility Components & Helpers */

/* Background colors */
.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-dark {
    background-color: var(--color-dark) !important;
}

.bg-light {
    background-color: var(--color-light) !important;
}

/* Text colors */
.text-primary {
    color: var(--color-primary) !important;
}

.text-white {
    color: var(--color-white) !important;
}

.text-muted {
    color: var(--text-color-muted) !important;
}

/* Spacing utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 2rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 2rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.5rem !important; }
.pt-2 { padding-top: 1rem !important; }
.pt-3 { padding-top: 2rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.5rem !important; }
.pb-2 { padding-bottom: 1rem !important; }
.pb-3 { padding-bottom: 2rem !important; }

/* Alignment utilities */
.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

/* Display utilities */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

@media (max-width: 767.98px) {
    .d-sm-none {
        display: none !important;
    }
    
    .d-sm-block {
        display: block !important;
    }
}

@media (max-width: 991.98px) {
    .d-md-none {
        display: none !important;
    }
    
    .d-md-block {
        display: block !important;
    }
}

/* Position utilities */
.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.position-fixed {
    position: fixed !important;
}

/* Icons */
.icon {
    display: inline-block;
    vertical-align: middle;
}

/* Aspect Ratio Helper */
.aspect-ratio {
    position: relative;
    width: 100%;
}

.aspect-ratio::before {
    content: "";
    display: block;
}

.aspect-ratio.a32::before {
    padding-top: 66.67%; /* 3:2 */
}

.aspect-ratio.a169::before {
    padding-top: 56.25%; /* 16:9 */
}

.aspect-ratio.a11::before {
    padding-top: 100%; /* 1:1 */
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth transitions */
.transition {
    transition: var(--transition-base);
}

.transition-fast {
    transition: var(--transition-fast);
}

.transition-slow {
    transition: var(--transition-slow);
}

/* No select */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* ============================================
   Floating Contact Button
   ============================================ */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 0;
    z-index: 1000;
}

.floating-contact-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #006ccd 0%, #0056a4 100%);
    border: none;
    border-radius: 30px 0 0 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    padding-left: 15px;
    overflow: hidden;
}

.floating-contact-btn:hover {
    background: linear-gradient(135deg, #0077e6 0%, #0066b8 100%);
    width: 80px;
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-contact-btn svg {
    width: 28px;
    height: 28px;
    color: white;
}

.floating-contact-panel {
    position: absolute;
    bottom: 70px;
    right: 10px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-contact-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-contact-panel h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #006ccd;
}

.panel-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.panel-close:hover {
    background: #e0e0e0;
    color: #333;
}

.contact-form .form-group {
    margin-bottom: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #006ccd;
}

.contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-form .btn-submit {
    width: 100%;
    padding: 12px;
    background: #006ccd;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-form .btn-submit:hover {
    background: #0056a4;
}

.contact-form .btn-submit:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Form Status Messages */
.form-status {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    display: none;
}

.form-status.loading {
    display: block;
    background: #e3f2fd;
    color: #1976d2;
}

.form-status.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
}

.form-status.error {
    display: block;
    background: #ffebee;
    color: #c62828;
}

/* Hidden honeypot field */
.hidden {
    display: none !important;
}

@media (max-width: 480px) {
    .floating-contact-panel {
        width: 280px;
        right: 5px;
    }
}
