/* Safe Space Page Styles */

/* Navigation Scroll Effect */
.navbar {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .logo a {
    color: #0a5d36 !important;
}

.navbar.scrolled .logo-img {
    filter: none;
}

.navbar.scrolled .nav-link {
    color: #0a5d36 !important;
}

.navbar.scrolled .nav-link:hover {
    color: #085d32 !important;
}

.navbar.scrolled .dropdown-arrow {
    color: #0a5d36 !important;
}

.navbar.scrolled .hamburger span {
    background: #0a5d36 !important;
}

.navbar.scrolled .dropdown-menu {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .dropdown-item {
    color: #0a5d36 !important;
}

.navbar.scrolled .dropdown-item:hover {
    background: rgba(10, 93, 54, 0.1);
    color: #085d32 !important;
}

/* Ensure smooth transitions for all navigation elements */
.navbar .nav-link,
.navbar .logo a,
.navbar .dropdown-arrow,
.navbar .hamburger span,
.navbar .dropdown-item {
    transition: color 0.3s ease, background 0.3s ease;
}

/* Make sure the navbar is positioned correctly */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Add padding to body to account for fixed navbar */
body {
    padding-top: 80px;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.navbar.scrolled .hamburger span {
    background: #0a5d36 !important;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        color: #0a5d36 !important;
        font-size: 1.2rem;
        font-weight: 500;
        padding: 1rem 2rem;
        width: 90%;
        text-align: center;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(10, 93, 54, 0.1);
        color: #085d32 !important;
    }

    /* Mobile Dropdown */
    .nav-dropdown {
        width: 90%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .dropdown-menu {
        position: static;
        display: none;
        background: rgba(10, 93, 54, 0.05);
        border-radius: 10px;
        margin-top: 0.5rem;
        padding: 0.5rem;
        width: 100%;
        box-shadow: none;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        color: #0a5d36 !important;
        padding: 0.8rem 1rem;
        font-size: 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .dropdown-item:hover {
        background: rgba(10, 93, 54, 0.1);
        color: #085d32 !important;
    }

    /* Logo adjustments for mobile */
    .logo {
        flex: 1;
    }

    .logo a {
        color: white;
        transition: color 0.3s ease;
    }

    .navbar.scrolled .logo a {
        color: #0a5d36 !important;
    }
}

.hero-section {
    background: linear-gradient(135deg, #0a5d36, #085d32);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/patterns/safe-space-pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h1 i {
    color: #ffd700;
    margin-right: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.safe-space-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: #0a5d36;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Privacy Assurance Grid */
.privacy-assurance {
    margin-bottom: 4rem;
}

.assurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.assurance-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.assurance-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.assurance-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0a5d36, #085d32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.assurance-icon i {
    font-size: 2rem;
    color: white;
}

.assurance-item h3 {
    color: #0a5d36;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.assurance-item p {
    color: #666;
    line-height: 1.5;
}

/* Form Styles */
.safe-space-form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 4rem;
}

/* Contact Fields Section */
.contact-fields-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 2px solid #0a5d36;
    position: relative;
}

.contact-fields-section::before {
    content: "📋 Your Contact Information";
    position: absolute;
    top: -12px;
    left: 20px;
    background: white;
    padding: 0 10px;
    font-weight: 600;
    color: #0a5d36;
    font-size: 0.9rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    color: #0a5d36;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-header h3 i {
    color: #28a745;
    margin-right: 0.5rem;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0a5d36;
    box-shadow: 0 0 0 3px rgba(10, 93, 54, 0.1);
}

.form-group input[type="tel"] {
    font-family: monospace;
}

.form-group input:invalid {
    border-color: #e74c3c;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

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

.character-count {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Mood Selector */
.mood-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.mood-option {
    position: relative;
}

.mood-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mood-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.mood-label:hover {
    border-color: #0a5d36;
    background: rgba(10, 93, 54, 0.05);
}

.mood-option input[type="radio"]:checked + .mood-label {
    border-color: #0a5d36;
    background: rgba(10, 93, 54, 0.1);
    color: #0a5d36;
}

.mood-label i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.mood-label span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Privacy Section */
.privacy-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.privacy-section h4 {
    color: #0a5d36;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.privacy-section h4 i {
    color: #28a745;
    margin-right: 0.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.checkbox-group label i {
    margin-right: 0.5rem;
    color: #28a745;
}

.help-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

.contact-info {
    margin-top: 1rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    border: 2px solid #0a5d36;
    box-shadow: 0 5px 15px rgba(10, 93, 54, 0.1);
}

.contact-info::before {
    content: "📋 Contact Information";
    display: block;
    font-weight: 600;
    color: #0a5d36;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

/* Response Section */
.response-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 4px solid #0a5d36;
}

.response-section .checkbox-group {
    margin-bottom: 0;
}

.response-section .help-text {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.submit-btn {
    background: linear-gradient(135deg, #0a5d36, #085d32);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(10, 93, 54, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 93, 54, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-text i {
    margin-right: 0.5rem;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.submit-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-note i {
    margin-right: 0.5rem;
    color: #28a745;
}

/* Support Resources */
.support-resources {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.support-resources h3 {
    color: #0a5d36;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.support-resources h3 i {
    color: #e74c3c;
    margin-right: 0.5rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.resource-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.resource-item.urgent {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff5f5, #ffeaea);
}

.resource-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.resource-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0a5d36, #085d32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.resource-item.urgent .resource-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.resource-icon i {
    font-size: 1.5rem;
    color: white;
}

.resource-item h4 {
    color: #0a5d36;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.resource-item.urgent h4 {
    color: #e74c3c;
}

.resource-item p {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.resource-link {
    display: inline-block;
    background: #0a5d36;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.resource-link:hover {
    background: #085d32;
}

/* Form Messages */
.form-messages {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.form-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.field-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .safe-space-form-container {
        padding: 2rem 1rem;
    }
    
    .mood-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .assurance-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
}
