/*
Theme Name: W3ctrl
Theme URI: https://w3ctrl.com
Author: W3ctrl Team
Author URI: https://w3ctrl.com
Description: A modern WordPress theme built with Bootstrap 5. Features a responsive design, clean layout, and customizable header and footer.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: w3ctrl
Tags: bootstrap, responsive, modern, custom
*/

/* Custom Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header Styles */
.site-header {
    background-color: #0d6efd !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 0;
    min-height: 120px;
}

.site-header .navbar {
    background-color: #0d6efd !important;
    padding: 1.5rem 0;
    min-height: 120px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    color: #fff;
    transform: translateY(-2px);
}

.navbar-brand img {
    max-height: 100px;
    height: auto;
    width: auto;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
    position: relative;
    padding-left: 0.75rem;
}

.site-logo-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.logo-main {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3),
                 0 0 20px rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.logo-sub {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4),
                 0 0 15px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.5px;
    display: block;
    margin-top: 2px;
    text-transform: uppercase;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (max-width: 991.98px) {
    .logo-main {
        font-size: 1.5rem;
    }
    
    .logo-sub {
        font-size: 0.85rem;
    }
    
    .site-logo-text {
        padding-left: 0.5rem;
    }
    
    .site-logo-text::before {
        width: 3px;
    }
}

@media (max-width: 575.98px) {
    .logo-main {
        font-size: 1.25rem;
    }
    
    .logo-sub {
        font-size: 0.75rem;
    }
}

.navbar-nav .nav-link {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Footer Styles */
.site-footer {
    background-color: #212529;
    color: #fff;
    padding: 1.5rem 0;
    margin-top: 4rem;
}

.footer-bottom {
    padding: 0;
}

.footer-copyright {
    color: #adb5bd;
    font-size: 0.9rem;
}

.footer-policy-links {
    font-size: 0.9rem;
}

.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-separator {
    color: #6c757d;
    margin: 0 0.75rem;
}

@media (max-width: 767.98px) {
    .footer-bottom .row {
        text-align: center;
    }
    
    .footer-policy-links {
        text-align: center !important;
        margin-top: 0.75rem;
    }
    
    .footer-separator {
        margin: 0 0.5rem;
    }
}

.main-content {
    min-height: 60vh;
    padding: 3rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
}

/* Form Styles */
.data-collection-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.data-collection-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd 0%, #6f42c1 50%, #0d6efd 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.form-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.form-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
    border-radius: 2px;
}

.data-collection-form .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    letter-spacing: 0.3px;
}

.data-collection-form .form-label::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    border-radius: 2px;
    margin-left: -8px;
    margin-right: 8px;
}

.data-collection-form .form-control {
    padding: 0.875rem 1.125rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    color: #2c3e50;
}

.data-collection-form .form-control:hover {
    border-color: #b8c5d1;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.08);
}

.data-collection-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15), 0 4px 12px rgba(13, 110, 253, 0.1);
    background-color: #ffffff;
    outline: none;
    transform: translateY(-1px);
}

.data-collection-form .form-control::placeholder {
    color: #95a5a6;
    opacity: 0.8;
    font-weight: 400;
}

.data-collection-form .form-select {
    padding: 0.875rem 1.125rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    color: #2c3e50;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    cursor: pointer;
}

.data-collection-form .form-select:hover:not(:disabled) {
    border-color: #b8c5d1;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.08);
}

.data-collection-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15), 0 4px 12px rgba(13, 110, 253, 0.1);
    background-color: #ffffff;
    outline: none;
    transform: translateY(-1px);
}

.data-collection-form .form-select:disabled {
    background-color: #f8f9fa;
    border-color: #e1e8ed;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.data-collection-form .form-select option {
    padding: 0.5rem;
    background-color: #ffffff;
    color: #2c3e50;
}

.data-collection-form .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.data-collection-form .input-group-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
}

.data-collection-form .input-group .form-control {
    border: 2px solid #e1e8ed;
    border-left: none;
}

.data-collection-form .input-group .form-control:focus {
    border-left: 2px solid #0d6efd;
}

.data-collection-form .btn-submit {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.data-collection-form .btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.data-collection-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
}

.data-collection-form .btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.data-collection-form .btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.3);
}

.data-collection-form .invalid-feedback {
    display: none;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: #dc3545;
    font-weight: 500;
    padding-left: 0.5rem;
}

.data-collection-form .was-validated .form-control:invalid ~ .invalid-feedback,
.data-collection-form .form-control.is-invalid ~ .invalid-feedback {
    display: block;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.data-collection-form .was-validated .form-control:invalid,
.data-collection-form .form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.data-collection-form .was-validated .form-control:valid,
.data-collection-form .form-control.is-valid {
    border-color: #198754;
    background-color: #f0fff4;
}

#resend-otp {
    border: 2px solid #e1e8ed;
    border-left: none;
    padding: 0.875rem 1rem;
    background-color: #ffffff;
    color: #0d6efd;
    transition: all 0.3s ease;
    border-radius: 0 10px 10px 0;
}

#resend-otp:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    color: #ffffff;
    transform: scale(1.05);
}

#resend-otp:active {
    transform: scale(0.95);
}

#resend-otp svg {
    transition: transform 0.3s ease;
}

#resend-otp:hover svg {
    transform: rotate(180deg);
}

#otp-input-group {
    animation: slideDown 0.4s ease-out;
}

#otp-sent-message {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#send-otp-btn {
    white-space: nowrap;
}

#send-otp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.data-collection-form .alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.data-collection-form .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.data-collection-form .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

@media (max-width: 768px) {
    .data-collection-form {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
        border-radius: 12px;
    }
    
    .form-heading {
        font-size: 1.15rem;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
    
    .data-collection-form .form-control {
        padding: 0.75rem 1rem;
    }
    
    .data-collection-form .btn-submit {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

