/**
 * Quote Modal - Creative & Systematic Design
 * "Tasarımda Düzen, Kodda Sistem" Philosophy
 */

/* Modal Base Styles */
.quote-modal .modal-dialog {
    max-width: 1100px;
    margin: 30px auto;
}

.quote-modal .modal-content {
    background: linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 67, 8, 0.1);
}

/* Allow select dropdown to overflow */
.quote-modal .modal-content:has(select:focus) {
    overflow: visible;
}

/* Animated Background Elements */
.modal-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Brush Stroke Backgrounds */
.brush-stroke {
    position: absolute;
    opacity: 0.05;
}

.brush-1 {
    top: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 67, 8, 0.3) 0%, transparent 70%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphBrush 20s ease-in-out infinite;
}

.brush-2 {
    bottom: -15%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 133, 0, 0.3) 0%, transparent 70%);
    border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    animation: morphBrush 25s ease-in-out infinite reverse;
}

.brush-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(254, 254, 31, 0.1) 0%, transparent 60%);
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    animation: pulse 15s ease-in-out infinite;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF4308, #FB8500);
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    top: 60%;
    right: 15%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #FB8500, #FEFE1F);
    animation: float 12s ease-in-out infinite reverse;
}

.shape-3 {
    bottom: 25%;
    left: 20%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FEFE1F, #FF4308);
    animation: float 10s ease-in-out infinite;
}

/* Close Button */
.quote-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer !important;
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.quote-modal-close:hover {
    background: rgba(255, 67, 8, 0.2);
    border-color: rgba(255, 67, 8, 0.3);
    transform: rotate(90deg);
}

.close-line {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.close-line-1 {
    transform: rotate(45deg);
}

.close-line-2 {
    transform: rotate(-45deg);
}

.quote-modal-close:hover .close-line {
    background: linear-gradient(90deg, #FF4308, #FB8500);
}

/* Modal Body */
.quote-modal .modal-body {
    padding: 60px 40px;
    position: relative;
    z-index: 10;
}

/* Left Side - Info */
.quote-modal-left {
    padding-right: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.quote-info-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-logo-area {
    margin-bottom: 30px;
}

.modal-logo {
    max-width: 150px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.quote-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.quote-title .title-line {
    display: block;
    color: #ffffff;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.quote-title .title-line:first-child {
    animation-delay: 0.3s;
}

.quote-title .title-line:last-child {
    animation-delay: 0.4s;
}

.gradient-text {
    background: linear-gradient(90deg, #FF4308 0%, #FB8500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quote-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

/* Features */
.quote-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 67, 8, 0.1), rgba(251, 133, 0, 0.1));
    border: 1px solid rgba(255, 67, 8, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, rgba(255, 67, 8, 0.2), rgba(251, 133, 0, 0.2));
    border-color: rgba(255, 67, 8, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    color: #FB8500;
    font-size: 20px;
}

.feature-text h5 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Right Side - Form */
.quote-modal-right {
    padding-left: 40px;
}

.quote-form-wrapper {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
    position: relative;
    z-index: 100;
}

.form-heading {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-subheading {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 30px;
}

/* Modern Form Inputs */
.form-group-modern {
    position: relative;
    margin-bottom: 45px;
    overflow: visible;
    z-index: 1;
}


.form-control-modern {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    pointer-events: auto;
    position: relative;
    z-index: 100;
}

.form-control-modern:focus {
    border-bottom-color: rgba(255, 67, 8, 0.5);
}

.form-control-modern:focus ~ .form-line {
    transform: scaleX(1);
}

.form-control-modern:focus ~ .form-label-modern .label-text,
.form-control-modern:not(:placeholder-shown) ~ .form-label-modern .label-text,
.form-control-modern:valid ~ .form-label-modern .label-text {
    transform: translateY(-25px);
    font-size: 12px;
    color: #FB8500;
}

.form-label-modern {
    position: absolute;
    left: 0;
    top: 12px;
    pointer-events: none;
}

.label-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FF4308, #FB8500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Disable custom cursor on modal */
.quote-modal * {
    cursor: auto !important;
}

.quote-modal input,
.quote-modal textarea,
.quote-modal button,
.quote-modal a {
    cursor: pointer !important;
}

.form-control-modern option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 10px;
}

/* Submit Button */
.quote-submit-btn {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(90deg, #FF4308 0%, #FB8500 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer !important;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 20px;
    pointer-events: auto;
    z-index: 100;
}

.quote-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 67, 8, 0.4);
}

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

.btn-icon {
    transition: transform 0.3s ease;
}

.quote-submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.btn-bg-animation {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.quote-submit-btn:hover .btn-bg-animation {
    left: 100%;
}

/* Form Footer */
.form-footer-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 20px;
}

.form-footer-text i {
    color: #FB8500;
    margin-right: 5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes morphBrush {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.15;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .quote-modal-left {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 40px;
        margin-bottom: 40px;
    }

    .quote-modal-right {
        padding-left: 0;
    }

    .quote-title {
        font-size: 28px;
    }

    .form-heading {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .quote-modal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .quote-modal .modal-content {
        border-radius: 15px;
    }

    .quote-modal .modal-body {
        padding: 30px 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }

    .quote-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .quote-description {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .modal-logo {
        max-width: 100px;
        margin-bottom: 15px;
    }

    .feature-item {
        gap: 15px;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
    }

    /* Hide feature badges on mobile */
    .quote-features {
        display: none;
    }

    /* Reduce spacing in form on mobile */
    .quote-modal-left {
        margin-bottom: 20px;
    }

    .quote-info-wrapper {
        margin-bottom: 0;
    }

    .quote-form-wrapper {
        margin-top: 0;
        padding-top: 0;
    }

    .form-heading {
        margin-bottom: 8px;
        font-size: 20px;
    }

    .form-subheading {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .form-group-modern {
        margin-bottom: 35px;
    }

    .quote-submit-btn {
        font-size: 15px;
        padding: 14px 25px;
    }

    .quote-modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}
