﻿
:root {
    --primary-color: #4E2683;
    --primary-light: #7b4cb4;
    --primary-medium: #a680da;
    --primary-lighter: #EEE6FA;
    --primary-dark: #36185c;
    --text-light: #ffffff;
    --text-dark: #1e1e1e;
    --border-color: #c5a9e5;
    --hover-bg: #36185c;
    --hover-text: #ffffff;
    --form-shadow: rgba(78, 38, 131, 0.1);
    --light-navy: #8f94fb;
}

/* Card-like container for the form */
#content .container form {
    background: var(--form-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--form-shadow);
}
/* Ensure form container fits small screens */
#content .container form {
    padding: 1rem;
}

/* Make nested fields stack nicely */
@media (max-width: 576px) {
    .row .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Reduce spacing for mobile */
    .pb-2 {
        padding-bottom: 0.5rem !important;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

    /* Modal padding for mobile */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 10px;
    }
}
/* Make inputs and textareas larger on mobile */
@media (max-width: 576px) {
    .form-control,
    .form-select,
    textarea.form-control {
        font-size: 1rem; /* Increase text size */
        height: 35px; /* Taller input fields */
        padding: 0.5rem 0.75rem;
    }

    textarea.form-control {
        min-height: 80px; /* Make textareas taller */
    }

    /* Add New Field link bigger for tap targets */
    .add-custom-field-link {
        font-size: 1rem;
        padding: 0.5rem 0;
        display: inline-flex;
        align-items: center;
    }

        .add-custom-field-link svg {
            width: 28px;
            height: 28px;
        }

    /* Better spacing between fields */
    .mb-3, .mb-4 {
        margin-bottom: 1rem !important;
    }
}
/* Mobile adjustments for links and buttons */
@media (max-width: 576px) {

    /* Buttons */
    .btn-lg {
        font-size: 1rem; /* Bigger text */
        padding: 0.75rem 1.5rem; /* More touch area */
        border-radius: 10px;
    }

    /* Add New Field link */
    .add-custom-field-link {
        font-size: 3rem;
        padding: 0.5rem 0;
    }

        /* Plus icon next to Add New Field */
        .add-custom-field-link .plus-icon svg {
            width: 20px;
            height: 20px;
        }

    /* Make all input text readable */
    .form-control,
    .form-select {
        font-size: 1rem; /* Increased for better readability */
        padding: 0.6rem 0.75rem;
    }
}

@media (max-width: 576px) {
    #content .container {
        padding: 0 0.75rem; /* Reduce side padding */
    }

        #content .container form {
            padding: 1rem;
            border-radius: 10px;
        }
}
@media (max-width: 576px) {
    .btn {
        font-size: 3rem;
        padding: 1rem 1.5rem;
        border-radius: 10px;
    }
}
@media (max-width: 576px) {
    body {
        overflow-x: hidden;
    }

    form {
        max-width: 100%;
    }
}
/* Add top padding in mobile view */
@media (max-width: 576px) {
    #content .container {
        padding-top: 70px; /* Adjust as needed */
    }

        /* Optional: reduce side padding for mobile */
        #content .container form {
            padding: 1rem;
        }
}

/* Responsive input and textarea font size */
@media (max-width: 576px) {
    .form-control,
    .form-select,
    textarea.form-control {
        font-size: 14px; /* Recommended minimum for mobile to prevent zoom */
        line-height: 1.4;
        min-height: 35px;
        padding: 0.6rem 0.75rem; /* Bigger touch area */
    }

    /* Textarea taller for readability */
    textarea.form-control {
        min-height: 90px;
    }
}



/* Label styling */
.form-label {
    font-weight: 600;
    color: var(--primary-dark);
}

.form-control,
.form-select {
    border: 1px solid var(--primary-medium);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(78, 38, 131, 0.1);
    transition: all 0.2s ease-in-out;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 0.2rem rgba(78, 38, 131, 0.25);
    }
    .form-select option {
        color: var(--text-dark);
        background-color: #fff;
    }
.auto-width-input {
    display: inline-block;
    width: auto;
    /*min-width: 50px;*/
    max-width: 100%;
    box-sizing: content-box;
}
.form-control,
.form-select {
    border: none; /* Remove all borders */
    border-bottom: 2px solid var(--primary-medium);
    border-radius: 0; /* Remove rounded corners */
    background-color: transparent; /* Optional: transparent background */
    box-shadow: none; /* Remove shadow */
    transition: border-color 0.3s ease;
    font-size: 1rem; /* Adjust size for mobile readability */
    padding: 0; /* Align to left edge */
    margin: 0.2rem;
}

    /* On focus */
    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary-dark);
        box-shadow: none;
        outline: none;
    }

    /* Optional: hover effect */
    .form-control:hover,
    .form-select:hover {
        border-color: var(--primary-light);
    }

.form-group.d-flex label.form-label {
    margin-bottom: 0; /* Remove bottom gap */
    margin-right: 8px; /* Space between label and input */
    display: flex;
    align-items: center; /* Vertical center alignment */
    white-space: nowrap; /* Prevent label from breaking */
}

.form-group.d-flex .form-control {
    height: auto;
    padding: 0.25rem 0; /* Smaller padding for vertical alignment */
    line-height: 1.2; /* Align text nicely */
    align-self: center; /* Center input in flex row */
}

.form-horizontal-group {
    display: flex;
    align-items: center;
    gap: 10px; /* space between label and input */
}

    .form-horizontal-group label {
        margin-bottom: 0;
        white-space: nowrap; /* keep label in one line */
    }

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
}


/* File input */
input[type="file"].form-control {
    padding: 0.35rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(78, 38, 131, 0.25);
    transition: all 0.2s ease-in-out;
}
.btn-outline-primary {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

    
.btn-secondary {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(78, 38, 131, 0.25);
    transition: all 0.2s ease-in-out;
}
    .btn-secondary:hover {
        background-color: var(--text-dark) !important;
        border-color: var(--text-dark) !important;
        box-shadow: 0 6px 16px rgba(78, 38, 131, 0.35);
    }
/* Link to add fields */
.add-custom-field-link {
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

    .add-custom-field-link:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

/* Modal refinements */
.modal-content {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.image-upload-box .upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 140px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 2px dashed #d3d3d3;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

    .image-upload-box .upload-box:hover {
        background-color: #f0eaff;
        border-color: #7b4cb4;
    }
.editable-label {
    cursor: text;
    border-bottom: 1px dashed var(--primary-color);
    ;
    transition: border-color 0.2s;
}

    .editable-label:focus {
        outline: none;
        border-bottom: 1px solid var(--primary-color); /* Purple highlight on edit */
    }
.bg-primary {
    background-color: var(--primary-color) !important;
}
.text-primary {
    color: var(--primary-color) !important;
}
.bg-form-title {
    background: linear-gradient(135deg, var(--primary-color), var(--light-navy));
    box-shadow: 0 4px 15px rgba(78,84,200,0.4);
}
.cursor-pointer {
    cursor: pointer;
}

.swal2-container {
    z-index: 11000 !important;
}

.service-button {
    position: relative;
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(45deg, #ff512f, #ed8ab6, #24c6dc, #5433ff, #20bdff, #a5fecb);
    background-size: 400% 400%;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    z-index: 1;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 4px 15px rgba(78,84,200,0.4);
    animation: gradientShift 7s ease infinite;
}

    .service-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(78,84,200,0.6);
    }


/* Gradient animation keyframes */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#contact .card {
    background: linear-gradient(135deg, #ffffff, #f8f9fc);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #4e73df;
}

    #contact .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }

#contact ul li i {
    font-size: 1.1rem;
    vertical-align: middle;
}
/* Navbar background gradient */
.custom-navbar {
    background: linear-gradient(90deg, #4E2683, #6a11cb, #2575fc);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Brand highlight */
.brand-highlight {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

    .brand-highlight:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255,255,255,0.3);
    }

/* Nav links */
.custom-navbar .nav-link {
    position: relative;
    color: #fff !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

    .custom-navbar .nav-link:hover {
        color: #ffd700 !important;
    }

    /* Animated underline effect */
    .custom-navbar .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0;
        height: 2px;
        background: #ffd700;
        transition: width 0.3s ease;
    }

    .custom-navbar .nav-link:hover::after {
        width: 100%;
    }
/* Dropdown Menu Styling */
.navbar .dropdown-menu {
    border-radius: 12px;
    padding: 8px 0;
    border: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    animation: dropdownFade 0.25s ease-in-out;
}

    .navbar .dropdown-menu .dropdown-item {
        padding: 10px 16px;
        border-radius: 8px;
        font-weight: 500;
        color: #4E2683; /* theme purple */
        transition: all 0.2s ease;
    }

        .navbar .dropdown-menu .dropdown-item:hover {
            background: #4E2683;
            color: #fff;
            transform: translateX(4px);
        }

.navbar .dropdown-toggle::after {
    margin-left: .4rem;
    vertical-align: middle;
    border-top: .4em solid;
    border-right: .4em solid transparent;
    border-left: .4em solid transparent;
    transition: transform 0.2s ease;
}

.navbar .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Fade in animation */
@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main dropdown link */
.template-dropdown {
    font-weight: 600;
    color: #fff !important;
    display: flex;
    align-items: center;
    transition: width 0.3s ease;
}

    /* Proper caret (fix yellow box issue) */
    .template-dropdown::after {
        font-size: 0.65rem;
        margin-left: 6px;
        vertical-align: middle;
        border: none !important; /* remove Bootstrap default caret */
        color: #fff; /* white arrow */
        transition: width 0.3s ease;
    }

/* Custom checkbox style */
.custom-check .form-check-input {
    margin-top:0.2rem;
    width: 1.2em;
    height: 1.2em;
    border: 2px solid #4E2683;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .custom-check .form-check-input:checked {
        background-color: #4E2683;
        border-color: #4E2683;
    }

    .custom-check .form-check-input:focus {
        box-shadow: 0 0 0 0.2rem rgba(78, 38, 131, 0.25);
    }

.custom-check .form-check-label {
    color: #333;
    /*font-weight: 500;*/
    font-size: 0.95rem;
}

.custom-check .terms-link {
    color: #4E2683;
    /*text-decoration: none;*/
    font-weight: 600;
}

    .custom-check .terms-link:hover {
        text-decoration: underline;
    }
