/* Logo Styles */
.logo {
    height: auto;
    margin: 1.5rem auto;
    max-width: 280px;
    width: 100%;
    transition: all 0.3s ease;
}

/* Thank you page specific logo */
.thank-you-page .logo {
    max-width: 260px;
}

/* Main Form Styles */
body {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.container {
    padding: 2rem 1rem;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.card-body {
    padding: 2rem;
}

/* Form Header and Progress Bar */
.form-header {
    text-align: center;
}

.steps-indicator {
    max-width: 400px;
    margin: 0 auto;
}

.step-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6D256F !important;
    margin-bottom: 0.75rem;
}

.progress {
    height: 0.5rem;
    background-color: rgba(109, 37, 111, 0.1) !important;
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar {
    background-color: #6D256F !important;
    transition: width 0.3s ease;
}

/* Form Controls */
.form-label {
    font-weight: 500;
    color: #6D256F;
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #6D256F !important;
    box-shadow: 0 0 0 0.25rem rgba(109, 37, 111, 0.1) !important;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
    padding-right: 1rem;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.375rem;
}

/* Checkbox Styles */
.form-check {
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: -1.75rem;
    margin-top: 0.125rem;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.form-check-label {
    padding-left: 0.25rem;
    color: #344767;
}

.form-check-input:checked {
    background-color: #6D256F !important;
    border-color: #6D256F !important;
}

.form-check-input:focus {
    border-color: #6D256F !important;
    box-shadow: 0 0 0 0.25rem rgba(109, 37, 111, 0.1) !important;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #6D256F !important;
    border-color: #6D256F !important;
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:disabled,
.btn-primary.disabled,
.btn-primary.loading,
.btn-primary[disabled],
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: #5a1e5c !important;
    border-color: #5a1e5c !important;
    color: #ffffff !important;
    box-shadow: 0 0.25rem 1rem rgba(109, 37, 111, 0.15) !important;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: #6D256F;
    border-color: #6D256F;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #6D256F;
    border-color: #6D256F;
    color: #fff;
}

/* Alert Styles */
.alert {
    border-radius: 0.5rem;
    padding: 1rem;
}

.alert-danger {
    background-color: #fff2f2;
    border-color: #ffebeb;
    color: #dc3545;
}

/* Thank You Page Styles */
.card-title {
    color: #6D256F;
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.card-text {
    color: #4a4a4a;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.card a {
    color: #6D256F;
    text-decoration: none;
    transition: all 0.2s ease;
}

.card a:hover {
    color: #5a1e5c;
    text-decoration: underline;
}

.list-unstyled li {
    margin-bottom: 0.75rem;
}

/* Visit Websites Section */
.websites-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(109, 37, 111, 0.1);
}

.websites-section h5 {
    color: #6D256F;
    font-weight: 600;
    margin-bottom: 1rem;
}

.website-links a {
    display: block;
    padding: 0.5rem 0;
    color: #6D256F;
    text-decoration: none;
    transition: all 0.2s ease;
}

.website-links a:hover {
    color: #5a1e5c;
    text-decoration: underline;
}

/* Website Links Styles */
.website-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.website-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.website-logo {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    height: 100px;
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.website-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(109, 37, 111, 0.1);
}

.website-logo img {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
}

.website-item a {
    color: #6D256F;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.website-item a:hover {
    color: #5a1e5c;
}

.website-item a:hover .arrow {
    transform: translateX(4px);
}

.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .website-links {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        padding: 0;
    }
    
    .website-logo {
        height: 90px;
        padding: 1rem;
    }
}

@media (max-width: 991px) {
    .website-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .website-logo {
        height: 100px;
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .website-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 0;
    }
    
    .website-logo {
        height: 80px;
        padding: 1rem;
    }
    
    .website-item a {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .website-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .website-logo {
        height: 70px;
        padding: 0.875rem;
    }
    
    .website-item a {
        font-size: 0.875rem;
    }
}

/* Link Styles */
a {
    color: #6D256F;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #5a1e5c;
    text-decoration: underline;
}

/* Loading State */
.btn-primary.loading {
    position: relative;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: calc(50% - 0.5rem);
    right: 1rem;
    border: 2px solid #ffffff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .logo {
        max-width: 220px;
        margin: 1rem auto;
    }
    
    .thank-you-page .logo {
        max-width: 200px;
    }
    
    .container {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 180px;
        margin: 0.75rem auto;
    }
    
    .thank-you-page .logo {
        max-width: 160px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.75rem;
    }
    
    .card-text {
        font-size: 1rem;
    }
}

/* Website Grid Styles */
.website-grid {
    margin: 0 -15px;
}

.website-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.website-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.website-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.website-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.website-card .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.website-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(109, 37, 111, 0.2);
}

@media (max-width: 768px) {
    .website-card {
        padding: 1rem;
    }
    
    .website-logo {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .website-logo {
        height: 60px;
    }
    
    .website-card .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Thank You Page Styles */
.thank-you-page {
    text-align: center;
    padding: 3rem 0;
}

.thank-you-page h2 {
    color: #28a745;
    margin-bottom: 1.5rem;
}

.thank-you-page .urls {
    margin-top: 2rem;
}

.thank-you-page .urls a {
    display: block;
    margin: 0.5rem 0;
    color: #007bff;
    text-decoration: none;
}

.thank-you-page .urls a:hover {
    text-decoration: underline;
}
