/**
 * Custom Styles
 * Button layout fixes and general customizations
 */

/* ============================================
   Button Layout Fixes
============================================ */
.button {
    display: flex !important;
    gap: 20px !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.button a {
    flex: 0 0 auto !important;
    position: relative !important;
}

/* Responsive button layout */
@media (max-width: 768px) {
    .button {
        gap: 15px !important;
        flex-direction: column !important;
    }
    
    .button a {
        width: 100% !important;
        max-width: 280px !important;
    }
}

@media (max-width: 480px) {
    .button {
        gap: 10px !important;
    }
    
    .btn-register {
        padding: 12px 30px !important;
        font-size: 14px !important;
    }
}

/* ============================================
   Visually Hidden (Accessibility)
============================================ */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ============================================
   Footer Partner Styles
============================================ */
.footer-partner-logo {
    text-align: left;
}

.footer-partner-img {
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-partner-img:hover {
    opacity: 1;
}

.partner-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ============================================
   Form Enhancements
============================================ */
.form-control:focus {
    border-color: #3366FF;
    box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.15);
}

.form-control.is-invalid {
    border-color: #e74c3c;
}

.form-control.is-valid {
    border-color: #28a745;
}

/* ============================================
   Alert Styles
============================================ */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* ============================================
   Loading Spinner
============================================ */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

/* ============================================
   Utility Classes
============================================ */
.text-primary {
    color: #3366FF !important;
}

.bg-primary {
    background-color: #3366FF !important;
}

.mt-50 {
    margin-top: 50px;
}

.pt-70 {
    padding-top: 70px;
}

.pr-50 {
    padding-right: 50px;
}

.pl-50 {
    padding-left: 50px;
}

@media (max-width: 991px) {
    .pr-md-0 {
        padding-right: 0;
    }
    .pl-md-15 {
        padding-left: 15px;
    }
}

@media (max-width: 576px) {
    .pr-xs-0 {
        padding-right: 0;
    }
    .pl-xs-15 {
        padding-left: 15px;
    }
    .pt-xs-0 {
        padding-top: 0;
    }
}

/* ============================================
   Contact Section Improvements
============================================ */
/* Reduce overall section padding */
.contact-area.default-padding {
    padding: 60px 0;
}

/* Remove double border - keep only the outer container styled */
.contact-form-style-one {
    padding: 40px 45px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    border: none;
}

/* Remove inner contact-form border/styling */
.contact-form-style-one .contact-form {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Adjust form titles */
.contact-form-style-one .sub-title {
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-form-style-one .title {
    font-size: 28px;
    margin-bottom: 25px;
}

/* Reduce form group spacing */
.contact-form-style-one .form-group {
    margin-bottom: 20px;
}

/* Smaller textarea */
.contact-form-style-one textarea {
    min-height: 120px;
}

/* Contact Information - Make it more prominent */
.contact-style-one-info {
    padding-right: 20px;
}

.contact-style-one-info h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.contact-style-one-info .mb-40 {
    margin-bottom: 25px !important;
}

/* Larger contact info items */
.contact-address {
    grid-template-columns: 1fr;
    gap: 25px;
}

.contact-address .info {
    background: #f8f9fc;
    padding: 25px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-address .info:hover {
    background: #f0f2f8;
    transform: translateY(-2px);
}

.contact-address .title {
    font-size: 18px;
    font-weight: 600;
    color: #232323;
    margin-bottom: 10px;
}

.contact-address .info a {
    font-size: 16px;
    color: #3366FF;
    font-weight: 500;
}

.contact-address .info a:hover {
    color: #2050cc;
}

/* Larger social icons */
ul.social-link {
    margin-top: 15px;
}

ul.social-link li a {
    height: 48px;
    width: 48px;
    line-height: 44px;
    font-size: 18px;
    border-radius: 10px;
    border-color: #3366FF;
    color: #3366FF;
    transition: all 0.3s ease;
}

ul.social-link li a:hover {
    background: #3366FF;
    color: #fff;
    border-color: #3366FF;
}

/* Responsive contact section */
@media (max-width: 991px) {
    .contact-style-one-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .contact-address {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .contact-form-style-one {
        padding: 30px 25px;
    }
    
    .contact-address {
        grid-template-columns: 1fr;
    }
    
    .contact-address .info {
        padding: 20px;
    }
}
