/* New Connection Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 140px 0 60px;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-top: 4rem;
}

.page-header p {
    font-size: 1rem;
    opacity: 0.9;
}

/* New Connection Section */
.new-connection-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.new-connection-section .container {
    max-width: 1200px;
}

/* Form Container */
.form-container {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
    margin: -2rem -2rem 2rem -2rem;
}

.form-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

/* Form Styling */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

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

/* Map Styling */
#map {
    height: 400px;
    width: 100%;
    border-radius: 8px;
    margin-top: 0.5rem;
    border: 2px solid #ddd;
    z-index: 1;
}

.location-display {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #e3f2fd;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    color: var(--text-dark);
    font-weight: 500;
}

.location-display i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Character Counter */
.char-count {
    display: block;
    text-align: right;
    color: var(--text-light);
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

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

.btn {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Success Message */
.success-message {
    background: #4caf50;
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
    animation: slideDown 0.5s ease;
}

.success-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-message h4 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.success-message p {
    font-size: 1rem;
    opacity: 0.9;
}

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

/* Info Box */
.info-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-item h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.info-item p,
.info-item ul {
    color: var(--text-light);
    line-height: 1.8;
}

.info-item ul {
    list-style: none;
    padding-left: 0;
}

.info-item ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item ul li:last-child {
    border-bottom: none;
}

.info-item ul li:before {
    content: "✓ ";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Language Toggle Button */
.lang-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lang-toggle i {
    margin-right: 0.5rem;
}

/* RTL Support for Urdu */
html[dir="rtl"] .form-group label,
html[dir="rtl"] .info-item h4,
html[dir="rtl"] .form-header h3 {
    text-align: right;
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group select,
html[dir="rtl"] .form-group textarea {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .info-item ul li:before {
    margin-right: 0;
    margin-left: 0.5rem;
}

html[dir="rtl"] .location-display i {
    margin-right: 0;
    margin-left: 0.5rem;
}

html[dir="rtl"] .char-count {
    text-align: left;
}

html[dir="rtl"] .lang-toggle i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .page-header {
        padding: 120px 0 40px;
    }

    .page-header h2 {
        font-size: 2rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-header {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
        padding: 1rem;
    }

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

    #map {
        height: 300px;
    }

    .info-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .page-header h2 {
        font-size: 1.5rem;
    }

    .form-container {
        padding: 1rem;
        border-radius: 8px;
    }

    .form-header {
        margin: -1rem -1rem 1rem -1rem;
        padding: 1rem;
    }

    .form-header h3 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.75rem 2rem;
        font-size: 0.95rem;
    }

    #map {
        height: 250px;
    }

    .success-message i {
        font-size: 2rem;
    }

    .success-message h4 {
        font-size: 1.2rem;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 968px) {
    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        flex-direction: column;
        padding: 1rem;
        display: none;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a,
    nav ul li .lang-toggle {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: left;
    }

    html[dir="rtl"] nav ul li a,
    html[dir="rtl"] nav ul li .lang-toggle {
        text-align: right;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .info-box,
    .form-actions,
    .lang-toggle {
        display: none;
    }

    .form-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    #map {
        border: 1px solid #ddd;
    }
}
